Exin Posted February 23, 2009 Share Posted February 23, 2009 Hi! Is there some color table for the 3rd color that appears in multicolor PMG's? -exin Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted February 23, 2009 Share Posted February 23, 2009 exin? why? color 1 OR color 2 = color 3? so in TurboBasic XL you could type following: (assuming that color 1 will be the darkest colour, colour 2 the middle and 3 the brightest). for color1=$02 to $f2 step $10:for color 2=$08 to $f8 step $10:print hex$(color1!color2):next color2:next color1 Quote Link to comment Share on other sites More sharing options...
Exin Posted February 24, 2009 Author Share Posted February 24, 2009 (edited) Because i would like to experiment with it since i'm trying to do graphics through Graph 2 font. You probably dont know me, but i'm a graphican on Plus/4 and CPC. Ofcourse i meant the color that appears in the odd combination of overlapping bits. Color 3. (I wonder if its possible to manipulate this color through a register?) -Exin exin? why? color 1 OR color 2 = color 3? so in TurboBasic XL you could type following: (assuming that color 1 will be the darkest colour, colour 2 the middle and 3 the brightest). for color1=$02 to $f2 step $10:for color 2=$08 to $f8 step $10:print hex$(color1!color2):next color2:next color1 Edited February 24, 2009 by Exin Quote Link to comment Share on other sites More sharing options...
Exin Posted February 24, 2009 Author Share Posted February 24, 2009 also, i only have the second happy computer disk that states turbobasic is on the first Quote Link to comment Share on other sites More sharing options...
Rybags Posted February 25, 2009 Share Posted February 25, 2009 To confuse things further, you can also have ORed colours with Playfield if you leave the bottom four bits of PRIOR at 0000. So, you have the option of Player 0 ORed with Player 1, add to that ORed combinations with Playfield 0 and PF1. Same deal with PL2/PL3, and combinations with PF2/PF3. There was a thread about it - something like 23 seperate colours available if the right combinations are used. Quote Link to comment Share on other sites More sharing options...
Exin Posted February 25, 2009 Author Share Posted February 25, 2009 To confuse things further, you can also have ORed colours with Playfield if you leave the bottom four bits of PRIOR at 0000. So, you have the option of Player 0 ORed with Player 1, add to that ORed combinations with Playfield 0 and PF1. Same deal with PL2/PL3, and combinations with PF2/PF3. There was a thread about it - something like 23 seperate colours available if the right combinations are used. So there are many double colors? Maybe someone should make something like a table of it.... With actual colors!!!! Quote Link to comment Share on other sites More sharing options...
Rybags Posted February 25, 2009 Share Posted February 25, 2009 There was a thread, and I did a quick demo program. You have PF0-3, Background = 5 colours Independant PL0-3 = 4 colours Mixed PL0/1 PL1/2 = 2 colours Interaction of PL0/1 with PF0/1 = 6 colours Interaction of PL0/1 with PF2/3 = 6 colours Total = 23 Quote Link to comment Share on other sites More sharing options...
Exin Posted February 25, 2009 Author Share Posted February 25, 2009 There was a thread, and I did a quick demo program. You have PF0-3, Background = 5 colours Independant PL0-3 = 4 colours Mixed PL0/1 PL1/2 = 2 colours Interaction of PL0/1 with PF0/1 = 6 colours Interaction of PL0/1 with PF2/3 = 6 colours Total = 23 Well, as i said, i dont want fucking numbers. Only a color table what to expect if i have that colored PMG combined with another PMG with a different color. Since G2F gives me something like light green when one is dark blue and the other is bright yellow... Quote Link to comment Share on other sites More sharing options...
Rybags Posted February 25, 2009 Share Posted February 25, 2009 It's a simple logic OR operation. As for a table, just draw something with a 16x16 grid. Actually, you could probably leave 0 out since it doesn't change anything. 1 2 3 4 etc... -------------------- 1| 1 3 3 5 2| 3 2 3 6 3| 3 3 3 7 4| 5 6 7 4 5| 5 7 7 4 etc... Quote Link to comment Share on other sites More sharing options...
raster/c.p.u. Posted February 25, 2009 Share Posted February 25, 2009 ...Only a color table what to expect if i have that colored PMG combined with another PMG with a different color. Complete color table you want to see would be too big. Please understand, there is 128 colors for each PMG, so 128*128 = 16384 combinations. It's better to realize behavior of bitwise OR. Or simpler, higher 4 bits of color number is color component, lower 3 bits is brightness. CCCCBBB0 So you can solve color result of colors' components and brightness result of brighness' components separately. Quote Link to comment Share on other sites More sharing options...
Rybags Posted February 25, 2009 Share Posted February 25, 2009 (edited) Colour and luma have the same relative interactions (except of course in most cases luma is only the 3 upper bits), so a 15x15 table would do the trick. I find it easiest to just think in terms of binary... although initial colour choices should be made with colour merging in mind. Luckily, we have colours that have multiple instances so long as you're not fussy. So, Blue ( 8 ) merges with almost anything, Green (10 or 12) is 50% versatile, as is Red (3) Edited February 25, 2009 by Rybags Quote Link to comment Share on other sites More sharing options...
raster/c.p.u. Posted February 25, 2009 Share Posted February 25, 2009 Ok ok, here are the tables I was talking about... Colors: Brightness: Enjoy it. Quote Link to comment Share on other sites More sharing options...
Exin Posted February 25, 2009 Author Share Posted February 25, 2009 Ok ok, here are the tables I was talking about... Colors: Brightness: Enjoy it. Thanks alot! Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted February 25, 2009 Share Posted February 25, 2009 Raster... thx, how do I have to read it? Quote Link to comment Share on other sites More sharing options...
Exin Posted February 25, 2009 Author Share Posted February 25, 2009 Raster... thx, how do I have to read it? Well, to me it looks like there are many things clear with these tables. If one color is black or white, and the other color is any other color, there will be no uniuque 3rd color. Same goes for brown or bright brown. The 8 luminances make it even more difficult to get a unique 3rd color....i tested this table in G2F and the result was correct. Even with other certain colors, there will be no unique 3rd. So its best to avoid the darkest and the brightest color in order to use Multicolor objects economically. These tables should have been printed into my TEWI Atari 800XL programming guide. I think the matter of this fact has been osed in a few demos yet? Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted February 25, 2009 Share Posted February 25, 2009 still not get it... Quote Link to comment Share on other sites More sharing options...
Exin Posted February 25, 2009 Author Share Posted February 25, 2009 X ist 1st color, Y is 2nd color. The spot where they meet is the 3rd color. Everything clear? Quote Link to comment Share on other sites More sharing options...
drac030 Posted February 25, 2009 Share Posted February 25, 2009 (edited) i'm a graphican on Plus/4 and CPC. (...) X ist 1st color, Y is 2nd color. The spot where they meet is the 3rd color. Everything clear? Exin, Heaven is A8 coder, and ORing sprite colours is basic stuff on this machine. Don't assume so easily that you possess some knowledge that is exotic for people here ... :] Edited February 25, 2009 by drac030 Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted February 25, 2009 Share Posted February 25, 2009 aehm... ok... I am too old or too stupid... if it is x,y and crossing point is colour...why do i need the 2nd lum table??? maybe as draco said... I am sticking to the multicolour approach like I am doing it since for 20 years... Quote Link to comment Share on other sites More sharing options...
Exin Posted February 25, 2009 Author Share Posted February 25, 2009 i'm a graphican on Plus/4 and CPC. (...) X ist 1st color, Y is 2nd color. The spot where they meet is the 3rd color. Everything clear? Exin, Heaven is A8 coder, and ORing sprite colours is basic stuff on this machine. Don't assume so easily that you possess some knowledge that is exotic for people here ... :] Why is he asking then? See! He asks again! Quote Link to comment Share on other sites More sharing options...
Exin Posted February 25, 2009 Author Share Posted February 25, 2009 aehm... ok... I am too old or too stupid... if it is x,y and crossing point is colour...why do i need the 2nd lum table??? maybe as draco said... I am sticking to the multicolour approach like I am doing it since for 20 years... There is no 1st lum table! Its to save space. One table for colors only and the second for the brigthness. So you dont need a giant 128x128 fields table but only a 16x16 and 8x8 table. This is good for sprite graphicians who dont know about the code behind. Or who are just lazy like me. Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted February 25, 2009 Share Posted February 25, 2009 can you give me an example? Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted February 25, 2009 Share Posted February 25, 2009 ach... dear me, got it... this time I was faster than last time when I needed years to get fixed point maths... Quote Link to comment Share on other sites More sharing options...
drac030 Posted February 25, 2009 Share Posted February 25, 2009 LOL. Okay Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted February 25, 2009 Share Posted February 25, 2009 hey.... I am marketing guy not engineer... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.