grol-io / grol

Go REPL Open Language
https://grol.io
Apache License 2.0
13 stars 1 forks source link

Adding vector graphics; add `atan2` as well. Fixed function caching. #219

Closed ldemailly closed 1 week ago

ldemailly commented 1 week ago

using golang.org/x/image/vector

adding

image.move_to image.line_to image.close_path image.draw

sample generates

grol

difficult part is/was what to do with alpha when adding

ldemailly commented 1 week ago

With the line with thickness demo:

grol

ldemailly commented 1 week ago

examples/disc.gr:

grol

ldemailly commented 1 week ago

circle: thickness 40

grol

thickness 1

grol

ldemailly commented 1 week ago

Random bezier points (discord.go version)

image