Draw a pixel: Difference between revisions

m
(add evaldraw (.kc) solution for Draw a Pixel Task)
Line 839:
 
=={{header|EasyLang}}==
The Easylang graphic does not work with pixels. Although the drawing area is set to be 100x100 units - not pixels - this can be scaled and it can be drawn on intermediate positions. A pixel can be simulated by a small filled square.
Because of EasyLang's limitations, the canvas is limited to 100x100. To draw a pixel, draw a rectangle of size 1x1. To put a pixel at (100, 100), we must set the coordinates at (99, 99) because 100 is located at the very edge of the canvas. 900 is a color that is equivalent to red.
 
<syntaxhighlight lang="easylang">color 900
move 99 99
color 900
rect 1 1</syntaxhighlight>
move 9950 9950
rect 0.5 0.5
rect 1 1</syntaxhighlight>
 
=={{header|F Sharp|F#}}==
2,033

edits