DOTTER 16
tab to activate board and draw with keyboard
holding h or v works while drawing
β | left | β | right | d | draw | h | draw horizontal line |
---|---|---|---|---|---|---|---|
β | down | β | up | e | erase | v | draw vertical line |
(π§ disable if slow)
β οΈ heads up this is just javascript
but also with extra functions available, like:
paint(x,y);
square(x1,y1,x2,y2);
horizontal(y);
vertical(x);
just replace x and y with coordinates.
bonus: all of these take color (string) as an optional parameter.
// try paint(0,1,"red"); below
// or, submit the existing code β¨
for(i=0;i<16;i++){
// multiply the hue each iteration. 20
// keeps it under the max value for hsv()
let color = "hsl("+ i*20 +",65%,70%)";
horizontal(i, color);
};
Sample scripts