Skip to content

evy: Add ellipse drawing builtin#127

Merged
juliaogris merged 1 commit intomasterfrom
ellipse
Apr 30, 2023
Merged

evy: Add ellipse drawing builtin#127
juliaogris merged 1 commit intomasterfrom
ellipse

Conversation

@juliaogris
Copy link
Member

Add canvas ellipse drawing builtin to draw ellipse with

ellipse x y radiusX [radiusY [rotation [startDegree endDegree]]]

@github-actions
Copy link

github-actions bot commented Apr 26, 2023

firebase-deployment: https://evy-lang--127-dpc6yohm.web.app (a8d2a16)

Copy link
Member

@camh- camh- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 LGTM (with comment)

return func(_ *scope, args []Value) (Value, error) {
argLen := len(args)
if argLen < 3 || argLen == 6 || argLen > 7 {
return nil, fmt.Errorf("%w: 'ellipse' requires 3,4,5,7 or arguments, found %d", ErrBadArguments, argLen)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this error message is a little off - "requires 3, 4, 5 or 7 arguments"

 Add canvas ellipse drawing builtin to draw ellipse with

 	ellipse x y radiusX [radiusY [rotation [startDegree endDegree]]]
@juliaogris juliaogris merged commit 17ada08 into master Apr 30, 2023
@juliaogris juliaogris deleted the ellipse branch April 30, 2023 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants