Difference between revisions of "Fillings"
From CodeStuff
| Line 1: | Line 1: | ||
<edcode> | <edcode> | ||
| + | |||
| + | |||
setColour("orange"); | setColour("orange"); | ||
| Line 11: | Line 13: | ||
fillRectangle(300,300,100,100,greyish); | fillRectangle(300,300,100,100,greyish); | ||
| + | |||
| + | fillRectangle(450,300,100,100,swatch); | ||
| Line 19: | Line 23: | ||
return "yellow"; | return "yellow"; | ||
} | } | ||
| + | } | ||
| + | |||
| + | function swatch(x,y) { | ||
| + | return rgb(x*255,y*255,255); | ||
} | } | ||
| Line 24: | Line 32: | ||
return grey(128+noise2d(x,y)*128); | return grey(128+noise2d(x,y)*128); | ||
} | } | ||
| + | |||
</edcode> | </edcode> | ||