Draw pixel and alpha channel - Printable Version +- NaaLaa (https://www.naalaa.com/forum) +-- Forum: NaaLaa (https://www.naalaa.com/forum/forum-1.html) +--- Forum: NaaLaa 7 Questions (https://www.naalaa.com/forum/forum-3.html) +--- Thread: Draw pixel and alpha channel (/thread-70.html) Pages:
1
2
|
Draw pixel and alpha channel - Tomaaz - 02-07-2024 Here is the Bubble Universe example. It seems that alpha element doesn't affect drawing single pixels: Code: set window "Bubble Universe", 512, 512 Is this a bug? I've tried draw pixel, set pixel and even both. RE: Draw pixel and alpha channel - johnno56 - 02-07-2024 (02-07-2024, 05:50 PM)Tomaaz Wrote: Here is the Bubble Universe example. It seems that alpha element doesn't affect drawing single pixels: Well, in my opinion, this is one impressive graphics demo... Very cool... Here is a screen shot of how it looks on my machine... Nicely done! J RE: Draw pixel and alpha channel - Tomaaz - 02-07-2024 I should have mentioned that it is not my original idea. I thing it was ZXDunny who posted it on one of the forums. When alpha component is working correctly the whole thing is a bit darker and slightly changing brightness between cycles what gives it even more dynamic look (that was my idea, but seems not to be working in NaaLaa). RE: Draw pixel and alpha channel - johnno56 - 02-07-2024 ... ah, but it is still a very nice 'conversion'... No change from my previous. 'Nicely done!'... RE: Draw pixel and alpha channel - 1micha.elok - 02-07-2024 (02-07-2024, 05:50 PM)Tomaaz Wrote: Here is the Bubble Universe example. It seems that alpha element doesn't affect drawing single pixels: Bubble Universe is a very beautiful art ... I like it RE: Draw pixel and alpha channel - Marcus - 02-08-2024 Afaik alpha works I haven't tried the program, but you set k only once. Since you use 'rnd' k will have the exact same value everytime you run the program (if that's what fooling you). I'll have a look when I get home, could ofcourse be a bug RE: Draw pixel and alpha channel - Marcus - 02-08-2024 I can confirm that 'draw pixel' doesn't seem to care about the alpha channel. How weird. I'll fix that RE: Draw pixel and alpha channel - Tomaaz - 02-08-2024 Yep. Something is wrong. Rnd is called multiple times (you missed the one just before wend), but I also tried to run it with different constant values and it didn't change the look of the bubble. RE: Draw pixel and alpha channel - aurel - 02-08-2024 i have this version with little bit different colors Code: ' Bubble universe RE: Draw pixel and alpha channel - johnno56 - 02-09-2024 Cool... Nice colours! |