Bug 35780 - cairo_pattern_create_radial(rx,ry,r,rx,ry,r) not working
Summary: cairo_pattern_create_radial(rx,ry,r,rx,ry,r) not working
Status: RESOLVED NOTABUG
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.10.3
Hardware: x86 (IA32) All
: highest blocker
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2011-03-29 19:15 UTC by guo
Modified: 2011-03-30 02:06 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Result I excepted (13.86 KB, image/png)
2011-03-30 02:01 UTC, guo
Details

Description guo 2011-03-29 19:15:25 UTC
Want to create a radial gradient with start circle and end circle are the same, but not working, the test code is the same with cairo default test code

cairo\test\degenerate-radial-gradient.c
Comment 1 Andrea Canciani 2011-03-30 00:18:28 UTC
Can you provide additional details about what is not working?
In particular, the backend you are using, the cairo revision and the result vs the expected result.

The expected result for a degenerate radial gradient like the one you are describing should be a transparent pattern.
Comment 2 guo 2011-03-30 02:01:05 UTC
Created attachment 45035 [details]
Result I excepted
Comment 3 Andrea Canciani 2011-03-30 02:02:41 UTC
To get that result, the two extreme circles shoud *not* be the same.
Comment 4 Andrea Canciani 2011-03-30 02:06:58 UTC
The documentation is quite lacking, but you can find the definition of the radial gradients here:
http://cgit.freedesktop.org/pixman/tree/pixman/pixman-radial-gradient.c#n151

You probably wanted to do something like cairo_pattern_create_radial(rx,ry,r,rx,ry,0).


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.