7/11/2023 0 Comments Neje dk 8 kz laser diode![]() If you want to draw a full grid from (0,0) to (500,500), you need to change the "for" lines. My sketch draws the grid top leftmost corner at (50,50) and the grid bottom rightmost corner at (450,450). You could try with "width=512 height=512 steps=16". The sketch makes a 10x10 grid if you want more squares, change the "steps=10 " line. The width and height can be changed in the lines "width=500 " and "height=500 " lines. If you have a local processing install, you can download the make_grid_for_neje_sketch.txt file. If you don't want to tinker with processing code, simply download the grid.png file. If you want to know the details of the grid generation, read here. I could draw it by hand or use imagemagick to make it, but I felt more confident on my processing skills, so I made a processing sketch at and run it to get a 500x500 grid. ![]() Then, we need to draw a grid on a 500x500 pixel image.
0 Comments
Leave a Reply. |