Nice but you don't use EnableExplicit? :shock:
Also it does not seem to be DPI aware.
If this could be adapted to reverse the animations when the state that trigered the animation ends like css does, it could be used as the basis for an animated UI framework
https://www.w3schools.com/css/css3 ...
Search found 865 matches
- Sun Oct 12, 2025 5:48 pm
- Forum: Tricks 'n' Tips
- Topic: vector drawing display list
- Replies: 21
- Views: 1985
- Sun Oct 12, 2025 2:44 pm
- Forum: Applications - Feedback and Discussion
- Topic: Complete Direct3D 11 Includes
- Replies: 2
- Views: 945
Re: Complete Direct3D 11 Includes
I still have to try it but it can be very useful.
To use DXGI include dxgi1_6.pbi
To use Direct3D 11 include d3d11_4.pbi
Update:
I have added some missing defines that were not caught by the importer, now i think is complete.
To use DXGI include dxgi1_6.pbi
To use Direct3D 11 include d3d11_4.pbi
Update:
I have added some missing defines that were not caught by the importer, now i think is complete.
- Sat Oct 11, 2025 10:10 pm
- Forum: Applications - Feedback and Discussion
- Topic: Complete Direct3D 11 Includes
- Replies: 2
- Views: 945
Complete Direct3D 11 Includes
Complete Direct3D 11 + DXGI Includes translated to purebasic, there are no examples, just the includes:
https://github.com/omegakode/PBDirect3D11
Direct3d 11:
https://learn.microsoft.com/en-us/windo ... irect3d-11
https://github.com/omegakode/PBDirect3D11
Direct3d 11:
https://learn.microsoft.com/en-us/windo ... irect3d-11
- Wed Oct 01, 2025 9:40 pm
- Forum: Tricks 'n' Tips
- Topic: DXGI Includes
- Replies: 0
- Views: 643
DXGI Includes
I needed this API so using a conversion tool and some ai help i translated it:
https://learn.microsoft.com/en-us/windows/win32/direct3ddxgi/dx-graphics-dxgi
dxgicommon.pbi
;dxgicommon.pbi
;- DXGI_RATIONAL
Structure DXGI_RATIONAL Align #PB_Structure_AlignC
Numerator.l
Denominator.l ...
https://learn.microsoft.com/en-us/windows/win32/direct3ddxgi/dx-graphics-dxgi
dxgicommon.pbi
;dxgicommon.pbi
;- DXGI_RATIONAL
Structure DXGI_RATIONAL Align #PB_Structure_AlignC
Numerator.l
Denominator.l ...
- Wed Sep 17, 2025 7:52 pm
- Forum: Tricks 'n' Tips
- Topic: SVG to PB VectorDrawing Codes
- Replies: 13
- Views: 1370
Re: SVG to PB VectorDrawing Codes
This is what i did at first but does not the first resetpath() erase any current drawing?
- Wed Sep 17, 2025 4:05 pm
- Forum: Tricks 'n' Tips
- Topic: SVG to PB VectorDrawing Codes
- Replies: 13
- Views: 1370
Re: SVG to PB VectorDrawing Codes
How do you set a defined width and height?
- Wed Sep 17, 2025 2:23 pm
- Forum: Tricks 'n' Tips
- Topic: SVG to PB VectorDrawing Codes
- Replies: 13
- Views: 1370
Re: SVG to PB VectorDrawing Codes
I asked chatgpt and it came with this, rewrites the path string returned by GenerateVectorCodeFromFile with the new x, y, width and height. Ideally it should do it in one pass in the GenerateVectorCodeFromFile function, but this seems to work as a quick workaround.
EnableExplicit
Structure ...
EnableExplicit
Structure ...
- Wed Sep 17, 2025 1:36 pm
- Forum: Tricks 'n' Tips
- Topic: SVG to PB VectorDrawing Codes
- Replies: 13
- Views: 1370
Re: SVG to PB VectorDrawing Codes
This is great but i think it needs the x, y, w, h parameters.
- Sun Jul 20, 2025 12:49 pm
- Forum: Applications - Feedback and Discussion
- Topic: Coroutines v3 - Crossplatform - AI Generated
- Replies: 1
- Views: 1503
Coroutines v3 - Crossplatform - AI Generated
Third revision of my coroutine system (resumable procedures), this time is a static lib written in C++ because the pb version used some deprecated functions that may not work in Macos Silicon. Even is not written in PB i tested on it first and translated the include, it may be useful.
I gave chat ...
I gave chat ...
- Thu Jun 26, 2025 1:55 pm
- Forum: General Discussion
- Topic: Webview2 control - Chromium browser for Purebasic (Windows) [Jan 1, 2024]
- Replies: 181
- Views: 88814
Re: Webview2 control - Chromium browser for Purebasic (Windows) [Jan 1, 2024]
I am glad it helped 
- Sun May 25, 2025 3:37 pm
- Forum: Coding Questions
- Topic: ImageVectorOutput() has no antialiasing – normal or bug?
- Replies: 7
- Views: 753
Re: ImageVectorOutput() has no antialiasing – normal or bug?
I think the problem is how PB creates a GDI Plus bitmap from a HBITMAP, because using the api directly works as expected but implies some hacking replacing the pb gdi plus graphics context.
Both examples fixed:
pjay:
; Adjust pre-multiplied alpha to true Alpha to resolve edge fringing with VDL ...
Both examples fixed:
pjay:
; Adjust pre-multiplied alpha to true Alpha to resolve edge fringing with VDL ...
- Thu May 15, 2025 10:04 pm
- Forum: Tricks 'n' Tips
- Topic: Fluid Colour - Abstract background.
- Replies: 11
- Views: 2555
Re: Fluid Colour - Abstract background.
- Mon Apr 21, 2025 9:24 am
- Forum: Tricks 'n' Tips
- Topic: PB Coroutines Ver. 2 [Crossplatform]
- Replies: 6
- Views: 1460
Re: PB Coroutines Ver. 2 [Crossplatform]
Added the destroy callback on MacOs, when you supply a windowid and a callback in co_create(), the callback will be called when the coroutine has finished, so you can clean up stuff or destroy the coroutine.
- Sat Apr 19, 2025 3:56 pm
- Forum: Tricks 'n' Tips
- Topic: PB Coroutines Ver. 2 [Crossplatform]
- Replies: 6
- Views: 1460
Re: PB Coroutines Ver. 2 [Crossplatform]
Hi,
the fact that reaches the trampoline function is a good sign, i changed some things in macos, can you test it?
I also added some new parameters in co_create, a coroutine cleanup callback in the context of a window application, only for win/linux for now i''ll add it to macos once the basic ...
the fact that reaches the trampoline function is a good sign, i changed some things in macos, can you test it?
I also added some new parameters in co_create, a coroutine cleanup callback in the context of a window application, only for win/linux for now i''ll add it to macos once the basic ...
- Fri Apr 18, 2025 8:23 pm
- Forum: Tricks 'n' Tips
- Topic: PB Coroutines Ver. 2 [Crossplatform]
- Replies: 6
- Views: 1460
Re: PB Coroutines Ver. 2 [Crossplatform]
Fibers are more lightweight and faster when switching, and since only one fiber runs at a time per thread they don't need synchronization like threads. It's task switching vs thread parallel execution.
In one of my projects threads won't work because all the code needed to be executed on the same ...
In one of my projects threads won't work because all the code needed to be executed on the same ...