Expression Syntax
caution
This document is a WORK IN PROGRESS
color.r = when {
color.r == 1 -> 2;
color.r == 2 -> 3;
};
color.g = when {
color.r == 1 -> 2;
default -> 7;
color.r == 2 -> 3;
};
color = Color.red -> [c] {
c.r *= 0.5;
c.g = 1;
c.a = 0.1;
};
state int[] valuesSized = new int[5];
state int[] valuesList = new int[] { 1, 2, 3 };
state int[] valuesExtruded = new int[4] -> [a] {
a[1] = 1;
a[2] = 2;
valuesSized[4] = 1;
};
run len[0] = 8;