English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 13 February 2005, 21:22   #1
Joe Maroni
Moderator
 
Joe Maroni's Avatar
 
Join Date: Feb 2003
Location: Germany
Age: 44
Posts: 1,303
Send a message via MSN to Joe Maroni
understanding the COLORXX regs...

i tried to rip some original colors from several games with the help of the AR MKIII...

after typing "info" in the console i´ve got the values of the COLORXX registers...

i also understand that the first nibble is unused and the other following 3 nibbles tell me the RGB values...

but the reason is that one nibble can handle a maximum value of decimal 16...or hex f....

but most paint programs have slidebars that goes up to decimal 256...

maybe its a little bit confused, but can anyone tell how to solve this problem...???

if its written understandable enough...
Joe Maroni is offline  
Old 13 February 2005, 23:43   #2
Codetapper
2 contact me: email only!
 
Codetapper's Avatar
 
Join Date: May 2001
Location: Auckland / New Zealand
Posts: 3,182
Action Replay handles 4 bit OCS/ECS colour values, from $000 to $fff. With AGA machines, you can use the full 8 bits for each RGB channel, thus $000000 to $ffffff.

If you are trying to recreate the palette on an AGA machine, you have to multiply each value by $11 (decimal 17) to get the corresponding colour. Thus 0 black becomes 0, 4 becomes $44 (decimal 68), 8 becomes $88 (decimal 136), $c becomes $cc (decimal 204) and $f becomes $ff (decimal 255).

I think quite a few programs just multiply by $10 but this means you miss out on the brightest shades of colours. ie. $f would become $f0. There is no perfect answer here but either multiply by $10 or $11 and you'll be OK.
Codetapper is offline  
Old 14 February 2005, 07:50   #3
Joe Maroni
Moderator
 
Joe Maroni's Avatar
 
Join Date: Feb 2003
Location: Germany
Age: 44
Posts: 1,303
Send a message via MSN to Joe Maroni
thanks...really helpful...
Joe Maroni is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Understanding DIWHIGH register jman Coders. Tutorials 6 11 June 2011 12:29
Understanding the Copper BippyM Coders. Tutorials 38 04 September 2010 12:18
Anyone like to help understanding this bootblock ??? Joe Maroni Coders. Tutorials 2 15 February 2007 17:33
mfm/custom regs/track loader snyp Coders. General 9 06 June 2006 19:42
Understanding ASM Routine Crackersixx Coders. Tutorials 13 10 February 2006 02:58

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:15.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.12077 seconds with 13 queries