Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/parameterized colors #4

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

benoitjadinon
Copy link

I've closed #3 by mistake but this time I nailed it, I fixed the precision issue, you were right @trentpiercy .

so I'm drawing strokes inside of the rect using oRect.deflate(rectPaint.strokeWidth/2)it's quite clean.

having Paints as parameters instead of colors, allows for customizing of the line size, color and style within one property, pretty awesome.

also added candleSpacing

            decreasePaint: new Paint()
              ..color = Colors.red
              ..strokeWidth = 1.0
              ..style = PaintingStyle.fill
            ,
            increasePaint: new Paint()
              ..color = Colors.green
              ..strokeWidth = 1.0
              ..style = PaintingStyle.fill
            ,
            volumePaint: new Paint()
              ..color = new Color.fromARGB(15, 255, 255, 255)
              ..style = PaintingStyle.fill,
            candleSpacing: 1.2,

default values are left as default (green stroke, red fill, volume same)

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.

None yet

1 participant