Closed mubaris closed 6 years ago
I'd like to take this
How do I redefine svg.Offcolor?
By writing this?
type Color svg.Offcolor
?
Because if I do that... canvas.LinearGradient() wont accept type Color.
type Color svg.OffColor
Do this, then in canvas.LinearGradient
use type assertion to convert back to svg.OffColor
Ohhk thanks! Got it
Is it fine if the user selects a gradient in the program he/she is writing?
Like:
lg = aurora.Gradient[5]
or
creating his own gradient and passing it in Create function?
They have to create their Gradient. That's the point
Okay thanks!
Right now, the user can only use pre-defined 2-color gradients. We need the following requirements
gradient
datatype, so that user can create their own gradients.svg.OffColor
asaurora.Color
. Only then the user will have access to it.gradient
should be a slice ofsvg.OffColor
/aurora.Color
. This way user can create a gradient of more than 2 colors.