<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div>Hi Grivet,<br></div><div><br>weather...yes it is<br><br></div>how.......if you know:<br></div><br></div>- the pixel coordinate of the pixel you want to manipulate and<br></div>- how to work with colormap ... <br><br></div>you should be able to manipulate a single pixel<br><br></div>For a start I suggest you understand how Matplot() works.<br></div>This is used in IPD to draw the image, when the ShowImage() command is used.<br><br></div>simple Example:<br><br></div>img = ones(100,100) * 256;        // white image with sioze of 100 x 100 px<br></div>ShowImage(img, "white image");<br></div>img(50,50) = 0;                         // set a single pixel to zero (= black)<br>ShowImage(img, "white image with one single black pixel");<div><div><br></div><div>Hth,<br></div><div>Philipp<br></div><div><div><div><br><br><div><div><div><div><div><div><div><br></div></div></div></div></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-04-16 12:53 GMT+02:00 Jean-Philippe Grivet <span dir="ltr"><<a href="mailto:jean-philippe.grivet@wanadoo.fr" target="_blank">jean-philippe.grivet@wanadoo.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I would like to know whether and how it is possible to program individual pixels within a Scilab figure ? I have in mind a simple application: a disk moves inside a bounded region and changes the colour of every pixel it sweeps over.  Thanks for your hints.<br>
<br>
JP Grivet<br>
<br>
<br>
<br>
---<br>
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.<br>
<a href="https://www.avast.com/antivirus" rel="noreferrer" target="_blank">https://www.avast.com/antiviru<wbr>s</a><br>
<br>
______________________________<wbr>_________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/mailma<wbr>n/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>In Kanada is' ka' na' da. Sonst wär' Kanada Jemanda.</div><div><br></div><div>There we have the salad.</div></div></div>
</div>