Sunday, January 8, 2023

Appreciation

 Getting familiar with certain aspects or working with Turtle.

The .colormode() function is quite useful. if one sets it to (1.0), one

can access the gthree color channels on the 0 to 1 range. 

A color's complement - the color that shows up the most on it - is then 

the difference of the given to 1.0. 


Below, I have also changed the pen width depending on direction. The result

is visually arresting.


Not seen below, but also useful, is the tracer setting. The first number is

on or off, 1 or 0. The second is the delay setting in seconds. Turtle can easily produce

a finished drawing but tracer can help up appreciate the process.


                                                                 

                                                                       

                                                                              


                                                                          


Found it annoying that the figure was more on the bottom part of the screen 

(because the drawing of an upper ridge begins in the middle).

 Below, the solution.


                                                                  






No comments: