• 1 Vote(s) - 4 Average
• 1
• 2
• 3
• 4
• 5
 Draw pixel and alpha channel Tomaaz Member Posts: 51 Threads: 7 Joined: Feb 2024 Reputation: 0 02-07-2024, 05:50 PM (This post was last modified: 02-07-2024, 05:51 PM by Tomaaz.) Here is the Bubble Universe example. It seems that alpha element doesn't affect drawing single pixels: Code:```set window "Bubble Universe", 512, 512 r = 6.283185307179586 / 235 mw = 512 mh = 512 hw = mw / 2 hh = mh / 2 x = 0 v = 0 u = 0 t = 0 k = rnd(190) + 64 set redraw 0 while 1     set color 0, 0, 0, 255     draw rect 0, 0, 512, 512, 1     for i = 0 to 255         for j= 0 to 255             u = sin(i + v) + sin(r * i + x)             v = cos(i + v) + cos(r * i + x)             x = u + t             set color i, j, 255 - i, k             draw pixel int(hw + u * hw * 0.4), int(hh + v * hh * 0.4)         next     next     redraw     t = t + 0.01     k = rnd(190) + 64 wend```  Is this a bug? I've tried draw pixel, set pixel and even both. « Next Oldest | Next Newest »

 Messages In This Thread Draw pixel and alpha channel - by Tomaaz - 02-07-2024, 05:50 PM RE: Draw pixel and alpha channel - by johnno56 - 02-07-2024, 06:04 PM RE: Draw pixel and alpha channel - by Tomaaz - 02-07-2024, 06:11 PM RE: Draw pixel and alpha channel - by johnno56 - 02-07-2024, 10:37 PM RE: Draw pixel and alpha channel - by 1micha.elok - 02-07-2024, 11:21 PM RE: Draw pixel and alpha channel - by Marcus - 02-08-2024, 02:33 PM RE: Draw pixel and alpha channel - by Marcus - 02-08-2024, 03:22 PM RE: Draw pixel and alpha channel - by Tomaaz - 02-08-2024, 04:04 PM RE: Draw pixel and alpha channel - by aurel - 02-08-2024, 07:59 PM RE: Draw pixel and alpha channel - by johnno56 - 02-09-2024, 04:26 AM RE: Draw pixel and alpha channel - by Tomaaz - 02-09-2024, 01:14 PM RE: Draw pixel and alpha channel - by Marcus - 02-09-2024, 03:51 PM RE: Draw pixel and alpha channel - by Tomaaz - 02-09-2024, 05:11 PM RE: Draw pixel and alpha channel - by johnno56 - 02-09-2024, 09:17 PM

Forum Jump:

Users browsing this thread: 2 Guest(s)