Difference between revisions of "Fillings"
From CodeStuff
(Created page with "<edcode> function blellow(x,y) { if (x>y) { return "blue" } else { return "yellow"; } } function greyish(x,y) { return grey(128+noise2d(x,y)*128); } set...") |
|||
| Line 1: | Line 1: | ||
<edcode> | <edcode> | ||
| + | |||
| + | setColour("orange"); | ||
| + | fillRectangle(100,100,100,100); | ||
| + | |||
| + | setColour("purple"); | ||
| + | fillRectangle(300,100,100,100); | ||
| + | |||
| + | |||
| + | fillRectangle(100,300,100,100,blellow); | ||
| + | |||
| + | fillRectangle(300,300,100,100,greyish); | ||
| + | |||
| + | |||
function blellow(x,y) { | function blellow(x,y) { | ||
if (x>y) { | if (x>y) { | ||
| Line 12: | Line 25: | ||
} | } | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
</edcode> | </edcode> | ||