mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-01-21 17:31:31 +00:00
RGB update
This commit is contained in:
parent
32dc3095aa
commit
ee397da178
@ -49,6 +49,7 @@ def rgbpix(r, g, b, x, y)#0
|
||||
var zdist, cdist
|
||||
byte i
|
||||
|
||||
// Error propogation
|
||||
//r = r - er/4
|
||||
//g = g - eg/4
|
||||
//b = b - eb/4
|
||||
@ -87,7 +88,7 @@ def rgbpix(r, g, b, x, y)#0
|
||||
//puts("Dist to Zero (Black):"); puti(zdist); putln
|
||||
//puts("Dist to Chroma Color:"); puti(cdist); putln
|
||||
if cdist < zdist
|
||||
// RGB closer to Chroma Color
|
||||
// RGB closer to chroma color
|
||||
er = dr
|
||||
eg = dg
|
||||
eb = db
|
||||
@ -96,7 +97,7 @@ def rgbpix(r, g, b, x, y)#0
|
||||
ntscCycle[i+BLU] = ntscChroma[i+BLU]
|
||||
dhgrSet(x, y)
|
||||
else
|
||||
// RGB closer to Black
|
||||
// RGB closer to black
|
||||
ntscCycle[i+RED] = 0
|
||||
ntscCycle[i+GRN] = 0
|
||||
ntscCycle[i+BLU] = 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user