Now I understand Hardness better!

In HTML5, the speed of draw_dab() can be greatly improved by filling an
ellipse instead of doing per pixel operation, and hardness can be easily
approached by radial gradient.

As I assumed the radius of get_color() is always 1,
otherwise get_color() is extremely slow especially for big
brush. watercolor.myb and eraser.myb are affected by this assumption.

Any suggestion to improve get_color() in HTML5 is welcome.

regards,
yap

2011/10/8 Martin Renold <[email protected]>

> hi
>
> At the suggestion of Jon, I have written a more detailed specification of
> the brushlib API.  The main focus was on describing the dab shape (eg.  the
> meaning of "hardness") so it is easier to reimplement draw_dab() optimized
> for different surface formats.
>
> http://wiki.mypaint.info/Brushlib
>
> I have pushed the sources for the figures into the mypaint repository in
> case anyone wants to make changes.
>
> --
> Martin Renold
>
_______________________________________________
Mypaint-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-discuss

Reply via email to