Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Non-standard colors
2007-06-16 15:24
Axel
Account closed

Registered: Apr 2006
Posts: 42
Non-standard colors

How to get non-standard colors on c64?
Brighter, darker or with diffrent hue than normal.
I saw them in few demos.
Is it hard to do?
2007-06-16 15:33
Mantiz
Account closed

Registered: Apr 2006
Posts: 36
They are probably done by switching between two near colors every frame, thus creating an illusion of a new color.
If that's the case as I suspect, it is not hard to do.

You can check this if you pause the demo in an emulator and watch what happens with the colors.
2007-06-16 15:54
Axel
Account closed

Registered: Apr 2006
Posts: 42
For example in demo Mentallic
Mentallic
This effect can be seen in part with bouncing balls.
Pixels behind letters have a non-standard colors,
few hues of yellow color.
They doesn't change even after pause.
2007-06-16 16:05
Mantiz
Account closed

Registered: Apr 2006
Posts: 36
Are you sure of this? I can't see any new colours in this one.

The effect is probably because a monitor or tv has a hard time displaying one pixel wide color changes. As the letters are in hires and the balls behind are in multicolor, the balls shine through the letters every other pixel, and the illusion of new colours there may seem the case. It kind of melts together.


2007-06-16 16:33
chatGPZ

Registered: Dec 2001
Posts: 11386
you can also create "new" colors by drawing alternating horizontal lines of colors with the same luminance.

try drawing alternating lines of brown (9) and blue (6) for example.

(this only works on PAL, not NTSC - *afaik*)
2007-06-16 17:28
Conrad

Registered: Nov 2006
Posts: 849
Quote:
The effect is probably because a monitor or tv has a hard time displaying one pixel wide color changes. As the letters are in hires and the balls behind are in multicolor, the balls shine through the letters every other pixel, and the illusion of new colours there may seem the case. It kind of melts together.


That is quite true. If you view demos on an emulator, you will notice the colours are fake, especially in expanded scale mode. However with a normal 50Hz television you will bearly notice it. I've noticed that when you watch scollers with colours on a TV, the pixels have a weird combination effect between the two colours, because it is obviously an analogue output from the computer.

And like Groepaz said, try drawing two hires colours next to each other and you will get the same thing on a TV.

It's basically down to how the human eye can distinguish colours from real light.
2007-06-16 17:34
chatGPZ

Registered: Dec 2001
Posts: 11386
Quote:

And like Groepaz said, try drawing two hires colours next to each other and you will get the same thing on a TV.

It's basically down to how the human eye can distinguish colours from real light.


dont mix up the colorbleeding with the mixing chrominance. drawing alternating horizontal lines with same luminance, but different chrominance will *really* give you new colors, because of how the PAL encoding/decoding works. this has nothing to do with the human eye.
2007-06-16 17:39
Conrad

Registered: Nov 2006
Posts: 849
You're right. My mistake, as it is to do with horizontal lines. My explaination was actually referring to vertical lines.
2007-06-16 19:47
Axel
Account closed

Registered: Apr 2006
Posts: 42
Quote:

Are you sure of this? I can't see any new colours in this one.

The effect is probably because a monitor or tv has a hard time displaying one pixel wide color changes. As the letters are in hires and the balls behind are in multicolor, the balls shine through the letters every other pixel, and the illusion of new colours there may seem the case. It kind of melts together.


Yes you are right it is fake,
but on the tv it works.
Vertical lines with same luminance also works.
2007-06-16 20:12
pernod
Account closed

Registered: Nov 2004
Posts: 25
The horizontal luminance trick is one of (the only?) things where the rare old VIC chip did have an advantage: because there where only five luminance levels, there where more possibilities to mix colours.

On the top of my head:

# Colour Lum
0 black 0
1 white 4
2 red 1
3 cyan 3
4 purple 2
5 green 2
6 blue 1
7 yellow 3
8 orange 2
9 brown 1
10 pink 3
11 dk grey 1
12 grey 2
13 lt green 3
14 lt blue 3
15 lt grey 3

New colours for lum 1:
red+blue
red+brown
red+dk grey
blue+brown
blue+dk grey
brown+dk grey

New colours for lum 2:
purple+green
purple+orange
purple+grey
green+orange
green+grey
orange+grey

New colours for lum 3:
cyan+yellow
cyan+pink
cyan+lt green
cyan+lt blue
cyan+lt grey
yellow+pink
yellow+lt green
yellow+lt blue
yellow+lt grey
pink+lt green
pink+lt blue
pink+lt grey
lt green+lt blue
lt green+lt grey

= 26 new colours.

I wrote an article about this in the 80s, without knowing there existed new VICs. :-/
2007-06-16 20:26
Axel
Account closed

Registered: Apr 2006
Posts: 42
Nice trick was used here
ECI Graphic Editor Preview V1.0


 
... 1 post hidden. Click here to view all posts....
 
Previous - 1 | 2 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
CreaMD/React
Guests online: 129
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 X-Mas Demo 2024  (9.5)
7 Dawnfall V1.1  (9.5)
8 Rainbow Connection  (9.5)
9 Onscreen 5k  (9.5)
10 Morph  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Webmasters
1 Slaygon  (9.6)
2 Perff  (9.6)
3 Sabbi  (9.5)
4 Morpheus  (9.4)
5 CreaMD  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.046 sec.