Comments (2)
Hello @RickMenza ,
I whipped up a quick example. A couple of notes:
-
GUIX only supports creating ALPHAMAP gradients today, which means it generates an 8bpp alphamap and you can then runtime assign the color used to draw the alphamap by initializing your brush. That's probably what you want anyway (that's what everybody wants!) but just to make sure you understand what's happening.
-
I purposely made it so the code calls "CreateGradient" every time you push the button, even though it really doesn't need to because the same gradient is being used every time, just drawn in different brush colors. I just wanted to demonstrate that gx_utility_gradient_create always check to see if the requested gradient has already been created, and if so it returns the existing gradient alphamap instead of creating a brand new one. If you were to check on the amount of the scratchpad memory that is free, it should only decrease on the first call and then stay constant.
There is a VisualStudio 2019 project included that should allow you to build and run as a desktop app. Let me know if you have any issues.
Best Regards
from guix.
from guix.
Related Issues (20)
- PNG/DEFLATE font compression
- How to implement physical key operations
- GUIX Studio does not generate proper specification code when JPEG support is disabled HOT 5
- Unable to import into latest GUIX Studio HOT 12
- gx_prompt_text_id_set doesn't conform to transparency setting HOT 5
- _gx_system_thread_entry gets stuck in tx_queue_receive after a few hours HOT 10
- Documentation question about gx_system_event_send() error code HOT 8
- Incorrect PNG function being called when 2d engine is disabled HOT 3
- Bad LowerCase/UpperCase file loading in recent file window HOT 3
- GUIX Studio RGB888 frame buffer support HOT 7
- Documentation Errors HOT 5
- 4bit per pixel png image support HOT 2
- GUIX in low power mode HOT 11
- gx_studio_auto_event_handler calls event function on a deleted widget HOT 9
- GUIX Studio font heights above 240 pixels are not possible HOT 2
- If a vertical lists has a multiple childs of different heights, the scrollbar thumb does not reach the end of the scrollbar HOT 3
- The GX_EVENT_FOCUS_LOST event is not sent if the parent does not have focus HOT 2
- GX_VERTICAL_LIST does not release input if it contains GX_SINGLE_LINE_TEXT_INPUT HOT 2
- Increase maximum font size HOT 2
- Hebrew : multiline text view widgets dont display correctly on several lines HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from guix.