home

svg_col_rot_3.1.0   grid_4.8py_ex_4.3recursion_6.4

a fresh start

  The image above left, is not a rectangular grid arrangement of coloured dots that has been rotated 45º. I tried that approach, and there were inherent issues when trying to align the two grid patterns, not least because the same interval value is used in the for loop constructs, which is of an integer … Continue reading

sixteen squares

  Both images, which are repeatable, are generated using a different seed value. The code uses the NodeBox builtin random  command together with seed and randint from the Python random module. There are numerous calls to random in this script: The first call is to the NodeBox builtin, using integer arguments 0, 1 to return … Continue reading

broken hachure

  In this first hachure test, we began by positioning the canvas origin to the canvas centre. We then drew 100 vertical lines of random length, but not longer than 300 px using a for loop. To apply rotation, requires setting the transform mode to CORNER. However, when we come to place the randomised hachure … Continue reading

on-track

  Given a distance of 20 px between the line splines, rotating the hachure 45º increases the required offset distances (when measured as perpendicular to the canvas) to (20^2 + 20^2)^0.5.      

sidetrack #3

  OK! So, I have adjusted the code for the drawpath() call so that we may add a fill colour from the function call. Better do the same for stroke colour and weight, too.