WIP Idea added dlparams so you can set an id on a display list command which allows you to modify the instruction
look closely when you move the mouse wheel, it modifies the rotation angle of the "quick brown fox.." and changes the color
This will help facilitate doing animations in SVG and also ...
Search found 5685 matches
- Thu Oct 02, 2025 10:49 pm
- Forum: Tricks 'n' Tips
- Topic: vector drawing display list
- Replies: 10
- Views: 322
- Thu Oct 02, 2025 7:24 pm
- Forum: Applications - Feedback and Discussion
- Topic: [Module] SVG - Module (all OS)
- Replies: 12
- Views: 6719
Re: [Module] SVG - Module (all OS)
I haven't posted the fix yet. I will make a new thread for it it.
- Thu Oct 02, 2025 12:21 pm
- Forum: Tricks 'n' Tips
- Topic: vector drawing display list
- Replies: 10
- Views: 322
Re: vector drawing display list
That's useful !
I will also add a *userdata parameter to the wrapper functions so you can acces it while walking the display list, then you can use that to do things like conditional rendering based or dynamicly edit the display list. If you call the wrapper functions it will call the vector ...
I will also add a *userdata parameter to the wrapper functions so you can acces it while walking the display list, then you can use that to do things like conditional rendering based or dynamicly edit the display list. If you call the wrapper functions it will call the vector ...
- Thu Oct 02, 2025 9:34 am
- Forum: Tricks 'n' Tips
- Topic: vector drawing display list
- Replies: 10
- Views: 322
Re: vector drawing display list
Sorry I didn't even think about that for the demo and no I just stick my nose up to the screen and squint.pjay wrote: Thu Oct 02, 2025 8:56 am This is really nice.![]()
What's missing though, is some love for DPI awareness - you clearly still have good eyesight![]()
fixed
- Thu Oct 02, 2025 6:05 am
- Forum: Feature Requests and Wishlists
- Topic: UseSVGImageDecoder/Encoder
- Replies: 35
- Views: 1693
Re: UseSVGImageDecoder/Encoder
thanks.
I've done a display list test here and am starting to integrate it into the module
viewtopic.php?p=646022#p646022
- Thu Oct 02, 2025 5:03 am
- Forum: Tricks 'n' Tips
- Topic: vector drawing display list
- Replies: 10
- Views: 322
Re: vector drawing display list
Does the canvas have layers you can enable/disable?
Or must we code that action?
No but the vector lib has layers. BeginVectorLayer()
I will eventually be adding a DOM so you will be able to turn layers on or off, select or modify elements, insert elements, do animation and event callbacks ...
- Wed Oct 01, 2025 10:55 pm
- Forum: Tricks 'n' Tips
- Topic: vector drawing display list
- Replies: 10
- Views: 322
Re: vector drawing display list
I had double buffering in my old canvas so you could draw and flip.
- Wed Oct 01, 2025 9:10 pm
- Forum: Tricks 'n' Tips
- Topic: vector drawing display list
- Replies: 10
- Views: 322
vector drawing display list
vector drawing display list, It's currently generic for the vector drawing functions but it's part of the SVG module
use cases.
for instance want to do a vector graphics drawing editor. you can use display lists to do undo and redo
or just want to resize the window and canvas from runtime input ...
use cases.
for instance want to do a vector graphics drawing editor. you can use display lists to do undo and redo
or just want to resize the window and canvas from runtime input ...
- Tue Sep 30, 2025 12:28 pm
- Forum: Feature Requests and Wishlists
- Topic: UseSVGImageDecoder/Encoder
- Replies: 35
- Views: 1693
Re: UseSVGImageDecoder/Encoder
I don't see any issue in writing it in pb, The amount of time it would take to import and wrap sika, I could adapt the usesvgmodule a few times over.
Sika is a big lib and unless it has a c lib or the c++ uses pure virtual classes you'd be need to write wrapper functions in c++ to export the classes.
Sika is a big lib and unless it has a c lib or the c++ uses pure virtual classes you'd be need to write wrapper functions in c++ to export the classes.
- Tue Sep 30, 2025 11:02 am
- Forum: Feature Requests and Wishlists
- Topic: UseSVGImageDecoder/Encoder
- Replies: 35
- Views: 1693
Re: UseSVGImageDecoder/Encoder
Hi idle,
I made a mistake, plutosvg and nanosvg was rendering some svg as a black shadow only. UseSvgImage is fine. Great to be true, I'm sticking to it to render toolbar and menu icons.
It will hopefully be a bit more flexible and faster than them to on redraws. a few things to work out on ...
- Tue Sep 30, 2025 10:30 am
- Forum: Feature Requests and Wishlists
- Topic: UseSVGImageDecoder/Encoder
- Replies: 35
- Views: 1693
Re: UseSVGImageDecoder/Encoder
no rush there's a lot for me to to do in the mean time but yes please if you can adapt it.pf shadoko wrote: Tue Sep 30, 2025 8:53 am wait a moment, this not work on vectordrawing
i will adapt this
- Tue Sep 30, 2025 7:42 am
- Forum: Feature Requests and Wishlists
- Topic: UseSVGImageDecoder/Encoder
- Replies: 35
- Views: 1693
Re: UseSVGImageDecoder/Encoder
For bitmap fonts, we can handle that.
Take it from my screen library.
https://www.purebasic.fr/english/viewtopic.php?t=84206&hilit=shader+sprite
;============================================================================================ fastfont
Procedure SS_InitFont(num,name.s, height.f ...
- Tue Sep 30, 2025 3:17 am
- Forum: Feature Requests and Wishlists
- Topic: UseSVGImageDecoder/Encoder
- Replies: 35
- Views: 1693
Re: UseSVGImageDecoder/Encoder
❌ SVG Features That Are Difficult or Impossible to Implement with pb.
| SVG Feature | Status in VectorDrawing | Notes |
|-------------------------------------|------------------------------------------|-------|
| Filters (blur, drop shadow, feGaussianBlur) | ❌ Not supported | No API for image ...
- Mon Sep 29, 2025 10:26 pm
- Forum: Feature Requests and Wishlists
- Topic: UseSVGImageDecoder/Encoder
- Replies: 35
- Views: 1693
Re: UseSVGImageDecoder/Encoder
Seems great................but where can I find the dll?
it will all be native just using the pb vector lib. I'm still working through it and addressing the issues then I'll look at display lists
and then I can look at adding animations effects and events.
I looked at adding text support to ...
- Mon Sep 29, 2025 8:49 pm
- Forum: Feature Requests and Wishlists
- Topic: UseSVGImageDecoder/Encoder
- Replies: 35
- Views: 1693
Re: UseSVGImageDecoder/Encoder
That's great idle, thank you!
But rendering some files results only black shape o inteded drawing.
Same occurs with nanosvg.
I managed to compile a plutosvg.dll, seems more svgs are rendered right.
Old resvg.dll is very good but have some dependency I don't know so I can't use in another ...