Search: Home | Atlas | Guides | Tests | Research | Techs | Skills | Index | Recent Changes | Preferences | Login

Guides > Painting > Reaction Values Colorbars

First the basic ingredients [Mac users see below for the tools to do this.]

Easy Guide

using a spreadsheet is recommended

using this guide is gives very accurate values if used well

if you have clockloc on (/clockloc) and maximized your screen on a 1024x768 resoltion barely cover the 3rd letter of the month
Aligning the paint ingredients window to the leftmost edge of the screen places the starting point at 10 pixels; easy math - djKap0w

always pixel before the coloredbar - last pixel on coloredbar

repeat for the other color bars

template only

look at the expected difference for what color you need to calculate
you will notice all uneffected colors will not be changed in any when when done correctly
if your other colors are also affected and it's not a White reaction, make sure you alligned your color bars correctly !

spreadsheet + template
For Sulfur + potash / potash + sulfur reactions see Subzero guide

after you've done this all rinse and repeat and do your next reaction, good luck
with rinse i mean fillup with a cheap ingredient like clay, clean the lab and take paint

Mac Methods (by Zuvun) (this is a work in progress) First off, Preview has all the functionality you need tp pick the RGB values -- no shareware tools needed! If you want to "Eye-dropper" to pick the actual screen RGB value, in Preview, under tools, select Show Colors. Click on the magnifying glass and you have the eye dropper to pick a color. In the "Colors" floating window, select sliders -- the 2nd icon in the tool bar -- and RGB values from the pop-up memnu.

If you want to measure the bar lengths -- the more accurate way of doing this, due to the alpha blending problems -- Preview also has the tools.

First off, pin the Pigment Lab dialog and move it to the upper left corner of your window. When you have the color you want to measure being displayed, take a screen shot (opt-C). I then hide the ATITD client and double click on the screen shot file you just made (its in the Documents/eGeneis folder in your home folder, which I keep in list mode sorted by Date Modified). It should open up in Preview.

The tool we're going to use is the Grab/Selection in the file menu. To make this easier and more accurate, we're going to start by increasing our resolution. (You'll want to double check the values following; they may differ on different screen configurations. I am using a 1440x900 resolution for my main monitor.) Under View select Actual Size (you can make this the default in preferences). Hit cmd-+ 4 times, which makes the image 4x larger, roughly. Then maximize the Preview window (hit the + in the upper left). This moves the window to a specific location -- as far left and up on your main monitor as possible, and scroll the window horizontally as far left as possible and vertically so that the 3 RGB bars are visible (and a bit below the screen center to avoid a pesky "help" message interfering with us). On my screen this results in the left most edge of RGB bars being at 42 and the right at 1082, yielding a bar length of 1040. So instead of the 51/52 (255/260) factor discussed above we will use a 255/1040 value to resolve our readings.

Now you can read out the values from the RGB bars. Select Grab/Selection in the File menu and determine X coordinate of the right most edge of each of the 3 color bars. Subtract 42 from each of those values, divide the result by 255/1040 and round.

Since you are working with a 4 times larger image, its much easier to not make a mistake reading the X coordinate (you can be off by a pixel or so and be much less likely to get a wrong value as a result), and having the bars in a known location at a known size makes the arithmetic simpler. (One of my biggest pet peeves -- its arithmetic, not mathematics. The math is the same in either case.)

I've managed to get Kempaint working, but with difficulties.

After a bunch of handwork to fix the above, Kempaint produces mostly good results and is fairly quick about doing it. However, it still makes mistakes; I suggest that if the distance of the "best" result Kempaint shows is > 15 you rerun it setting a lower distance target to get a recipe which is more likely to succeed.

I'm playing around with a brute force program to figure paint recipes, rather than the limited search methods in Kempaint (and eliminating what appear to be some errors in Kempaint regarding the maximun unique item rule and reactions). Although, at first glance, a brute force program (evaluate all possible recipes) seems an interminable task (Something like 15^^15 possbile recipes) I think a couple simple hueristics and a learning mode can reduce the space tremendously (without ignoring any possible recipes). Of course, the fact that I'm working it in pure C without re-entrant coding means it will be immensely more efficient than these C++ programs using actual procedure re-entrancy; at least an order of magnitude and maybe more.


NameCreatorDateSizeDescription
alligment.jpegNeouniSeptember 1, 2006 1:04 pm51348alligning the screen for easy calculation
pixelcount.jpegNeouniSeptember 1, 2006 1:03 pm49398counting pixels with colorcop

Home | Atlas | Guides | Tests | Research | Techs | Skills | Index | Recent Changes | Preferences | Login
You must log in to edit pages. | View other revisions
Last edited April 2, 2008 7:58 pm by Zuvun (diff)
Search: