go-p5 / p5

p5 is a simple package that provides primitives resembling the ones exposed by p5js.org
https://go-p5.github.io/
BSD 3-Clause "New" or "Revised" License
150 stars 12 forks source link

Bezier curve #15

Closed psampaz closed 3 years ago

psampaz commented 3 years ago

updated #6

This PR adds the cubic Bézier curve to the api.

I added a dedicated test case and a dedicated golden file since I believe it will make maintenance easier as the api grows.

codecov[bot] commented 3 years ago

Codecov Report

Merging #15 (8594445) into main (44a77d6) will increase coverage by 0.93%. The diff coverage is 90.47%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #15      +/-   ##
==========================================
+ Coverage   69.55%   70.48%   +0.93%     
==========================================
  Files           8        8              
  Lines         450      471      +21     
==========================================
+ Hits          313      332      +19     
- Misses        118      119       +1     
- Partials       19       20       +1     
Impacted Files Coverage Δ
shapes.go 88.81% <90.00%> (+0.16%) :arrow_up:
api_shapes.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 44a77d6...dfd27b1. Read the comment docs.

sbinet commented 3 years ago

needs go-p5/p5#16

sbinet commented 3 years ago

thanks again, and welcome to go-p5 :)

out of curiosity, what do you envision using it for?

psampaz commented 3 years ago

You are very welcome! I am interested currently in static generative image art (no motion, no interactions).

sbinet commented 3 years ago

nice.