Skip to content
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

Modified GIF background transparency #74

Merged
merged 1 commit into from
Dec 29, 2022
Merged

Conversation

heurist1
Copy link
Contributor

@heurist1 heurist1 commented Dec 18, 2022

Added a new parameter to use either background color or transparent

This is a solution for issue #73.
Sorry I can't see how to link this to the issue I raised, maybe I don't have the rights to do that.
I have attached the GIF that I wanted to use. I have trued it with both black and transparent background, but can see from the code that they will be treated the same.

For completenes the script I use is

kill_thread 1,0
reset
setup 1,512, 3
init
render
brightness 1,120
render

config_2D 1,32,16,2,32,8

thread_start 1
set_thread_exit_type 1,0
do
draw_image 1,/home/pi/snow03.gif,0,0,100,100,32,16,256,128,1,1,0
render 1
loop
thread_stop

snow03

Added a new parameter to use either background color or transparent.
@tom-2015 tom-2015 merged commit 9240d11 into tom-2015:master Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants