Synfig Issue Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
CLOSED  Bug report #352  -  Blend methods for Cairo colors don't work
Posted Mar 24, 2013 - updated Apr 27, 2013
action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
icon_info.png This issue has been closed with status "Fixed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Bug report
  • Status
     
    Fixed
  • Assigned to
     Carlos López
  • Progress
       
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     Carlos López
  • Owned by
    Not owned by anyone
  • Time spent
    1 week, 2 days, 21 hours
  • Category
    Rendering
  • Resolution
    RESOLVED
  • Priority
    Must fix before next release
  • Targetted for
    icon_milestones.png 0.64.0
  • Tags
    icon_customdatatype.png cairo blend method
  • Difficulty
    icon_customdatatype.png Medium
Issue description
The templates of the blend methods for Cairo Color doesn't work for most of the cases. In the render procedures the blending is performed for surfaces and for that usage, a special custom function is called (cairo_paint_with_alpha_operator) But in particular, when two Cairo colors needs to be blended together the direct blend templates doesn't work. The following blend modes hasn't been rewritten for single Cairo Color:
  • Composite
  • Straight
  • Onto
  • Straight Onto
  • Multiply
  • Color
  • Hue
  • Saturation
  • Luminance
  • Behind
  • Screen
  • Hard Light
  • Alpha Over
  • Overlay


It is possible that some of the templates could work directly using Cairo Colors but in any case there are many that needs to be rewritten.
Steps to reproduce this issue
Create a Xor Pattern and use Composite mode. It returns a black image when using Cairo render.

#5
Comment posted by
 Carlos López
Apr 08, 19:21
Fixed Composite
#11
Comment posted by
 Carlos López
Apr 11, 16:40
Fixed Multiply
#13
Comment posted by
 Carlos López
Apr 16, 17:30
Fixed Overlay, Screen, Onto, Straight
#16
Comment posted by
 Carlos López
Apr 16, 17:57
Implemented Straight Onto
#18
Comment posted by
 Carlos López
Apr 18, 16:19
Fixed Color, Hue, Saturation and Luminance
#20
Comment posted by
 Carlos López
Apr 18, 16:57
Fixed Alpha Over, Hard Light and Behind
#22
Comment posted by
 Carlos López
Apr 18, 16:59
I don't know why but Color, Hue, Saturation and Lunimance gives wrong results in some circumstances. Possibly it is due to the limitation of the Cairo Colors on store values beyond limits (0-255) what is not an issue on Color (0.0-1.0) because values out of that range are ok.

The issue was updated with the following change(s):
  • This issue's progression has been updated to 100 percent completed.
  • This issue has been closed
  • The status has been updated, from New to Closed.
  • The resolution has been updated, from Not determined to WON'T FIX.
  • Information about the user working on this issue has been changed, from Carlos López to Not being worked on.
  • Time spent on this issue, from No time spent to 1 week, 2 days, 21 hours.
#27
Comment posted by
 Carlos López
Apr 18, 17:02
Ok so I consider it fixed.

The issue was updated with the following change(s):
  • This issue has been closed