-
Notifications
You must be signed in to change notification settings - Fork 2
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
API: focalPoint information is missing for canvas setSourceRadialPatternStops:center:radius:message #25
Comments
I'm sorry, somehow I missed the notification about your issue. Thank you for you question. I hope my answer at Discord was useful. Don't hesitate to create more issues or ask at the channel.
Martín
… On 24-02-2023, at 13:26, RB ***@***.***> wrote:
Closed #25 <#25> as completed.
—
Reply to this email directly, view it on GitHub <#25 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAXHHKIJVQUPWVEM3LECU6LWZDOJ5ANCNFSM6AAAAAAVDYLYYU>.
You are receiving this because you are subscribed to this thread.
|
Hi I feel I need to reopen this issue. Sure, I understand that AeCanvas is higher level than AeCairo. However, I can't understand why in AeCanvas >> setSourceRadialPatternStops: aCollection center: aPoint radius: aNumber, innerCenter is the same as outerCenter. That make a figure like the one attached impossible to draw.
It require one inner center and one outer center
Linear Gradient is correctly available, and I can't find any good reason why radial gradient is limited to circle only. |
+1 AeCanvas and all the codebase is in evolution. Would you like to submit a PR? else, at some point I can do it, no problem. |
Quite probably, this reduced API is driven by Bloc needs. Cairo allows much more than what's exposed in AeCanvas. For example pharo-graphics/Bloc#191 requested conical layout (and @labordep also by email). This is supported by cairo patches as in Another example, but it's not reported as issue AFAIR, is adding in Bloc image background the possibility to repeat, to create a pattern. Like: Source: |
@tinchodias your example interest me :D |
@labordep the pattern? I reported it in pharo-graphics/Bloc#334 we have to define what's the Bloc API to set it, and at low level it seems simple. I just created also a separate issue in Bloc, for the conical gradient: pharo-graphics/Bloc#333 Maybe somebody wants to pick them and push PRs 😜 |
Thanks for the issue ! |
What would be the best: Change existing API (we're not stable yet), or extend it ? |
@rvillemeur For AeCanvas in general I'd go for changing existing API, always that it doesn't imply any potential performance slowdown, like having to create new instances, doing extra maths. |
I wanted to update bloc as well, but It changed so many different things, I don't understand why. |
@rvillemeur this is due to pharo 12 changes in the code format. Use pharo 11 if you don't have these changes. More details on the discord: https://discord.com/channels/223421264751099906/278558427796602882/1152598669191819268 |
I did the change in Pharo 11. I'll do it again. probably tomorrow. |
Hm, I also suspect it can be related to the new Tonel v3 format. Dont know if this impacts in Pharo 11 too. |
No problem on Pharo 11. We had a problem with the EOL character but not with Tonel. The new Tonel format is concerning Pharo 12 only I think. |
@rvillemeur how did you avoid the noise lines? I'm having that problem too in pharo-graphics/Bloc#346 |
Hi @tinchodias, Thanks for your update on Tonel V1 vs V3. That was really making a lot of noise in the commit. One quick question. My initial request was on AeCanvas. Should we do something as well for BlRadialGradientPaint ? As of today, it only accept center and radius, as it was in original AeCanvas API. Do you think it should better reflect the innerCenter, innerRadius, outerCenter, outerRadius parameters ? |
Hi @rvillemeur good idea on adding that to BlRadialGradientPaint's API. The default values can be backwards compatible. |
Should we close this issue @rvillemeur ? |
Thanks for taking in account this change. |
Radial pattern should have 3 parameters:
The third one is missing in the API. As the API exist, It can only display circle with gradient color. The focal point allow to display something more like a half-ellipse with gradient color.
To illustrate this, here is a short example in Athens:
A similar result in Alexandrie
The radial pattern cannot be completed in its current API state...
Note
Explanation how to do this explained here: discord example
The text was updated successfully, but these errors were encountered: