Create Unit Circle with its Sin Cos Animation

The mod1() function might be useful.

julia> mod1(180 + 181, 360)
1

Also, this code:

setfont("Georgia Bold", 73)
...
 text(string("sin $k")

is mixing the two Cairo text APIs and so won’t work the way you think.

1 Like