Log In  

Cart #56728 | 2018-09-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

I was wondering if it would be possible to use structured temporal dithering to fake more than 16 colors, and it is indeed possible!

at 60hz, 1:2 mixes look fairly natural, but 1:4 mixes are a little too noisy.

P#56729 2018-09-16 08:25 ( Edited 2018-09-17 03:07)

:: dw817

How lovely, Paniq ! We were experimenting with this sometime ago. Here is what I came up with, my 1st attempt at 256-colors:

https://www.lexaloffle.com/bbs/?tid=31737

Cart #56731 | 2018-09-16 | Code ▽ | Embed ▽ | No License

p01 had the genius idea to dither it, much like you are doing here:

Cart #56732 | 2018-09-16 | Code ▽ | Embed ▽ | No License

With small coding indeed !

p=0
cls()
function _update60()
 p=1-p
 fillp(23130)
 if(p>0)fillp(-23131)
 for i=0,15 do
  for j=0,15 do
   rectfill(i*8,j*8,i*8+7,j*8+7,i+j*16)
  end
 end
end

CableDragon then took the idea and did this one:

Cart #56733 | 2018-09-16 | Code ▽ | Embed ▽ | No License

Use LEFT and RIGHT arrow keys to change dither technique.

Your method shows a beautiful rainbow though, something none of us did.

P#56734 2018-09-16 12:14 ( Edited 2018-09-16 16:16)
:: paniq

cool! nice visualization technique and i like how small the code is. i've already been thinking about encoding a hi-color picture this way but that involves considerable off-line work. maybe when i have more time.

P#56757 2018-09-16 23:07 ( Edited 2018-09-17 03:07)

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2020-07-12 06:23 | 0.023s | 4194k | Q:50