Draw a pixel: Difference between revisions

Content deleted Content added
Torbjoern (talk | contribs)
add evaldraw (.kc) solution for Draw a Pixel Task
Chkas (talk | contribs)
Line 839: Line 839:


=={{header|EasyLang}}==
=={{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
<syntaxhighlight lang="easylang">
move 99 99
color 900
rect 1 1</syntaxhighlight>
move 50 50
rect 0.5 0.5
</syntaxhighlight>


=={{header|F Sharp|F#}}==
=={{header|F Sharp|F#}}==