Home Tutorials Forums Articles Blogs Movies Library Employment Press

 Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

 06-06-2006, 10:12 AM #1 JimmyH Registered User   Join Date: Aug 2005 Location: Chelmsford, Essex, UK Posts: 72 advanced color manipulation Hello to you all. I know how to manipulate hex colours by splitting the num bers up and perfoming calcutaions on them using bit-operators. Thats fine... but i now need to manipulate colour not using the normal RGB. I need to be able to add two colours together like paint. E.g. red and blue equals purple, yellow and blue equals green. Has anyon e had any experience with this and even more importantly can it be done? (i assume it can... nothings impossible) cheers James
 06-06-2006, 10:52 AM #2 FormerSwinger CurrentFlasher     Join Date: May 2005 Location: Finland Posts: 382 that's a bit tricky. Yes, I believe it's possible but I have no clue about the maths involved. The problem is that if you add all color components together in rgb you get white where in real life you would end up with black (in a perfect world) or dark brown. Also in real life the main colors are red yellow and blue instead of red green and blue. so in rgb yellow is red and green, in the real world this would give you something brownish I think? If I were you I'd try to search the math someplace else e.g math forums, image manipulation forums etc. __________________ Just that it hasn't been done before doesn't mean it's impossible.
 06-06-2006, 01:46 PM #3 JimmyH Registered User   Join Date: Aug 2005 Location: Chelmsford, Essex, UK Posts: 72 thanks mate... Thats exactly what i've been doing and i have the maths now. I have some functions that work now and i will be putting a class togather at some point over the next few days. But i have a nother problem... adding two CMYK colours together... take this problem for example. We know that if we add red paint and blue paint we get purple paint. Simple... most people learnt that in junior school. The mathematical values of the paints are Red: c = 0 m = 100 y = 100 Blue: c = 100 m = 100 y = 0 now the cmy value for purple is: c = 50 m = 100 y = 0 so whats the formular for merging the red and the blue to get the purple figures. it's baffling me quite a bit (reccon it's pretty simple but it's escaping me!) edit... and i'll be off to some maths forums as well i'd expect

 Thread Tools Display Modes Rate This Thread Linear Mode Rate This Thread: 5 : Excellent 4 : Good 3 : Average 2 : Bad 1 : Terrible

 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 Off HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home ActionScript Forums Group     ActionScript 3.0     ActionScript 2.0     ActionScript 1.0 (and below)     Simple Stuff (Newbies) Flash General Questions     Flash 10 General Questions     Flash 9 General Questions     Flash 8 General Questions     Other Flash General Questions Flex     Flex 2, 3 & 4     Flex 1 Extensions and Plugins     Components     JSFL - Extending Flash Desktop, Mobile and non-browser Environments     AIR (Apollo)     FlashLite / Portable Devices Development     Projectors and CDs Supporting Technologies     HTML and JavaScript     haXe     Server-Side Scripting     Flash Remoting     Flash Media Server General     Best Practices     Gaming and Game Development     Animation and Effects     Flashants Support Forum Community Boards     General Chat     Just for Kicks Challenges     Detention Flash In Action     Site Check     Cool Sites     Widgets Decommissioned     Projects and Positions CMS Forums     Announcements Board     Content Postings / Updates     Product Review Requests     CMS Technical Questions     Process Questions     Collaboration & Suggested Articles

 Similar Threads Thread Thread Starter Forum Replies Last Post blueboxgamer ActionScript 2.0 4 08-18-2005 04:07 AM snapple General Chat 10 11-21-2003 12:11 PM Madokan Server-Side Scripting 0 05-27-2003 09:23 AM Forcer ActionScript 1.0 (and below) 17 08-18-2001 03:12 AM

All times are GMT. The time now is 11:53 AM.

///