CS2 - "Clamp" specified colors (aka Replace Colors)

Hi all,
I have a non-indexed RGB image that is required to have only very specific colors within it.  I'm trying to write a script that will look for these specific colors within the image and will clamp any pixel color *not* found in the list to the closest match in the list.  I should also mention that we have quite a number of artists using various versions of Photoshop, with the lowest version being CS2.  As a result I'm targetting Photoshop CS2.
My first attempt was to cycle through all of the pixels one-by-one, pull the color, find the closest match, and set it again.  This was terrifyingly slow to the tune of ~hour or so on a fairly high-res image.
My next approach was to use ScriptListener and use Select->Color Range to select pixels of a particular color and provide some error using the Fuzziness value.  This sort-of worked, except when I tried to fill the selection the fill was not a solid color as the selection was feathered.  I can't figure out how to set the feathering to 0.0 under CS2   I know I can do the whole Refine Edge on CS3+, but like I said my target is CS2 as we have a few folks still using that version.
I also played around with Magic Wand, and it theory it does exactly what I want - provides a selection with some provided tolerance which I can then fill with a solid color.  The problem is I seem to be able to only use the magic wand given a target pixel-coordinate (x,y).  Is there a way I can invoke the magic wand given a color instead?  That or use Color Range without feathering?  Or any other better/recommendd solution that would replace a color +- some tolerance with a specified color?
Thank you in advance --
Graf

It does have that option, but that just selects all pixels with the exact (or rather, really close) color.  Instead, I need to select all of the pixels of that color within some margin of error, and then replace all of them with a solid color.  Not particularly useful to me, as the purpose is to find all pixels of a specific color within some tolerance, and select them without any feathering.
In CS3 I found that I could refine the selection and set the feathering / anti-aliasing / etc to 0, and then fill the entire selection.  That is *exactly* the desired result, but alas no such option exists in CS2.  Alternatively, using the magic-wand with continuity disabled also provides the desired selection, but I can't seem to invoke the tool without providing an X/Y coordinate.

Similar Messages

  • Specifying Colors with a different ColorModel than sRGB

    Hi everyone,
    for a reason which I still don't understand, for sometimes I'm as foolish as hell, I want to specify a color with the HSV color model.
    In order to do this I went through the API specification and I came up with this solution, which I thought would work:
    float components[] = {0.67f, 0.6f, 0.85f};
    ColorSpace cs = new ICC_ColorSpace(ICC_Profile.getInstance(ICC_Profile.icSigHsvData));
    Color HSVColor = new Color(cs, components, 1.0f);
    but at run-time I receive the IllegalArgument Exception "Unknown color space".
    Can someone lend a hand?
    Thanks guys,
    Pierlu.

    It's strange how sometimes you understand where you were wrong only when you ask someone else for cues.
    I've rearranged my code in the following way, and now it works:
    float components[] = {0.67f, 0.6f, 0.85f};
    ColorSpace cs = new ICC_ColorSpace(ICC_Profile.getInstance(ColorSpace.CS_CIEXYZ)); //<---
    Color c = new Color(cs, components, 1.0f);
    but nonetheless it doesn't do what I want!
    I tried to specify the ColorSpace in the following way
    ColorSpace cs = new ICC_ColorSpace(ICC_Profile.getInstance(ColorSpace.TYPE_HSV));
    but I still get an error.
    So I've come to the conclusion that I only can specify colorspaces through static constants that starts with "CS_".
    But my question now is: "How can I specify a color though the HSV or the CIE_Lab or any other damned colorspace?"
    (Sorry guys but I'm getting a nerve out of this)
    Thanks again you all,
    Pierlu.

  • Photoshop CS2: Get CMYK color from pixel?

    Hi, in Photoshop CS3 I can use colorSamplers to pick up a CMYK color from a pixel. But I haven't found anything in the CS2 scripting reference about that.
    I cannot use channels["cyan"].histogram, because I need the calculated %-value (0100) from Photoshop, not the color index number (0255).
    Example:
    A pixel was filled with 70% cyan, Photoshop uses internally 69,8% and that's the value I want to read through a script.
    Any suggestions? :-)

    [email protected] wrote:
    > Hi, in Photoshop CS3 I can use colorSamplers to pick up a CMYK color from a pixel. But I haven't found anything in the CS2 scripting reference about that.
    >
    > I cannot use channels["cyan"].histogram, because I need the calculated %-value (0100) from Photoshop, not the color index number (0255).
    >
    > Example:
    > A pixel was filled with 70% cyan, Photoshop uses internally 69,8% and that's the value I want to read through a script.
    >
    > Any suggestions? :-)
    Try this:
    var cyanPercent = (channels["cyan"].histogram/255) * 100;
    -X
    for photoshop scripting solutions of all sorts
    contact: [email protected]

  • Displaying specified colors on the pie chart rather than default colors

    Any ideas on how I can display my own colors on the pie charts rather than displaying default colors?

    Hi,
    You can specify your own colours by changing the default CSS styles.
    Go to the Chart Attributes for the pie chart, and in the CSS section select Yes in the "Use Custom CSS" option. You can now edit the CSS for the chart.
    At the bottom of the "Custom CSS, inline" setting, you need to add in two lines for each possible segment of the chart. Something like:
    rect.data1{stroke:#FFFFFF;stroke-width:0.5;fill:green;}
    path.data1{stroke:#FFFFFF;stroke-width:0.5;fill:green;}
    rect.data2{stroke:#FFFFFF;stroke-width:0.5;fill:yellow;}
    path.data2{stroke:#FFFFFF;stroke-width:0.5;fill:yellow;}
    rect.data3{stroke:#FFFFFF;stroke-width:0.5;fill:red;}
    path.data3{stroke:#FFFFFF;stroke-width:0.5;fill:red;}
    This will set the colours of the first three segments to green, yellow and red respectively. Add in more rect.datan and path.datan entries until you have accounted for the maximum number of segments that your chart may contain.
    Regards
    Andy

  • Could not complete your request because specified color book could not be found

    I have seen this question on here before but the problem was never dealt with. From what I can tell this is an issue when a specific color from a color book is applied to a channel in Photoshop as a spot color and when the same file is opened on another computer with an instance of photoshop that doesn't share the same color book that said colors were pulled from, it simply won't open. Now I have been to countless pages that stated that I can simply download the new color books such as the Adobe Blog New PANTONE libraries but when I go to the link it suggests it just gives me some pantone color manager which after trying it for 30 days, did not download any missing color books. It seems to be the new pantone + libraries that I need in order to open these files. I also called pantone themselves to see if they could give me an answer so hopefully between here and there someone somewhere can get me those color books i need.
    They are apparently free and easy to download. I will probably feel like a moron when someone reveals something obvious I have overlooked but at the very least I just want this problem solved.
    thank you for your time.

    I have seen this question on here before but the problem was never dealt with. From what I can tell this is an issue when a specific color from a color book is applied to a channel in Photoshop as a spot color and when the same file is opened on another computer with an instance of photoshop that doesn't share the same color book that said colors were pulled from, it simply won't open. Now I have been to countless pages that stated that I can simply download the new color books such as the Adobe Blog New PANTONE libraries but when I go to the link it suggests it just gives me some pantone color manager which after trying it for 30 days, did not download any missing color books. It seems to be the new pantone + libraries that I need in order to open these files. I also called pantone themselves to see if they could give me an answer so hopefully between here and there someone somewhere can get me those color books i need.
    They are apparently free and easy to download. I will probably feel like a moron when someone reveals something obvious I have overlooked but at the very least I just want this problem solved.
    thank you for your time.

  • Photoshop 7, CS2 and CS3 color files

    I'm trying to create color palettes that users will be able to download and import into all 3 versions of photoshop on a MAC and PC. what color formats can i use that would span across all of these?
    I have tried the .ASE extension but Photoshop 7 doesn't recognize this format.
    Anyone have any thoughts on this?

    Macro (File Name Extension)
    Macau (ISO Country code)
    Macedonian (linguistics)
    Macaroni
    Media Access Control
    Multiple Access
    Mid-American Conference
    MacPaint (File Name Extension)
    Medium Access Control
    Message Authentication Code
    Make-Up Art Cosmetics, Inc
    Mandatory Access Control
    Mark McGwire (baseball player)
    McMaster University (Hamilton, Ontario, Canada)
    Mycobacterium Avium Complex (medicine)
    Media Access Controller
    Material Adverse Change
    Immaculata
    Mainland Affairs Council (Taiwan)

  • Specify colors in drop down lists

    A client has requested that their drop down menu options are color coded - is this possible? As an example, they have a drop down with 3 choices (Completed, In Progress, Not Started). They want to attribute a color to each option (ie Complete - Green, In Progress - Yellow, Not Started - Red) so that when the form is filled out - a glance at the form provides a quick reference as to the status of all of their projects.  Is this possible? Thanks...  

    Here's a script that you can use as the custom Validate script for the dropdowns. It assumes there are only the three items that you mentioned and set the background color to red, yellow, or green, which will be easier to notice than the font color.
    // Custom Validate script for dropdown
    // Determine the background color
    var f_color = color.red;
    if (event.value === "In Progress") f_color = color.yellow;
    if (event.value === "Complete") f_color = color.green;
    // Set this field's background color
    event.target.fillColor = f_color;

  • [CS2/CS3] - Getting color of stroke

    I'm parsing graphical objects (rectangles, ...) and I want to be able to get color of stroke(fill color),
    I use this code:  
    Utils()->GetFillRenderingUID(sourceFillRenderingUID, sourceGraphicStyleDescriptor);  
    to get sourceFillRenderingUID and now I use:  
    PMString sourceStrokeColor = Utils()->GetSwatchName(sourceSplineRef.GetDataBase(), sourceStrokeRenderingUID); 
    but this method returns me name of color only in case of base color (Black,...),
    please how to get color CMYK or something similar to be able to compare 2 colors ?  Thx, marxin

    I found out, that if I create a graphic object with defined swatc (f.e. C=100, M=0, Y=0, K=50), my code:<br/>
    Utils<IGraphicAttributeUtils>()->GetStrokeRenderingUID(sourceStrokeRenderingUID, sourceGraphicStyleDescriptor);
    PMString sourceStrokeColor = Utils<ISwatchUtils>()->GetSwatchName(sourceSplineRef.GetDataBase(), sourceStrokeRenderingUID);
    my code correctlly gets "C=100, M=0, Y=0, K=50" as a name of strokeColor. But If I create user defined solid color (which is not a swatch profile), my code gets "" as a Name. I read in guide that solid color f.e. will create a local swatch profile, but I am not able to get the color from UID.
    Please could anyone help me how to get color from stroke and local swatch ?
    Thx, marxin

  • [CS2/CS3 AS] Color Management vs Scripting

    Argh! Okay, I've got a very simple script whose purpose in life is to shut off all ligatures in all stories. Literally 3 lines long.
    tell application "Adobe Illustrator"
    tell front document
      set ligature of every character of every story to false
      set contextual ligature of every character of every story to false
      set discretionary ligature of every character of every story to false
    end tell
    end tell
    Now here's the catch. We have a bunch of AI files from outside artists, and I'm not sue what they did our how they did it but when the script is run on their files, all text goes through an automatic RGB to CMYK conversion *even though it was already CMYK to begin with*!
    So all the 100% black text suddenly becomes "rich black" text with 75C 68M 67Y 90K. (It still shows as CMYK in the GUI, but get properties of the text now returns 0R 0G 0B. Get properties directly before running the script returns 0C 0M 0Y 100K)
    This is, of course, seriously bad for final output...
    Anybody have some idea what might be happening here? Or failing that, a sample script to let me change the color model of every character of every story back to CMYK?
    Thanks in advance,
    Eric.

    Eric,
    I've found out in the past that even if you change the Document Color Mode from RGB to CMYK, the original mode will still be shown when reopening the file in the color panel. My CMYK fill and stroke are set to no fill and a 0.5 pt stroke. If I open a file that started life as an RGB file, even though it has been changed to CMYK, the color panel will show a white fill and a 1 pt stroke, the setting in my RGB startup file.

  • Hide annotations of a specified color

    I know next to nothing about scripting, although I have spent considerable amount of time examining the js_developer_guide.pdf and similar resources.
    I need to show/hide all annotations of a particular color, for example all annotations that have a "red " fill color.  The below script seems to find and hide only the first instance of a "red" annotation.  It doesn't continue on to find and hide all other "red" annotations.  Any help would be greatly appreciated.
    this.syncAnnotScan();
    var myAnnotList = this.getAnnots();
    for (var i=0; i<myAnnotList.length; i++)
    if (color.equal(myAnnotList[i].fillColor, color.red))
    myAnnotList[i].hidden = true;

    It could be that the color of the annotations is not exactly red (like if a
    custom color was used), so they aren't being hidden.
    You can have the script print out the fill color of each annot to test it
    out.

  • RE: GoLive CS2 swf icon color

    I have a Web page that is black, and has a black layout grid. I'm trying to link four Flash photo galleries to the page, with a .gif as the link to each gallery that the users click to go to that gallery. The Flash slideshows were done in Photoshop CS3. I'm on an iMac with OSX 10.4
    When I drag the .swf icon from the menu to the grid, the background of the icon is white. Until now, when I've done that, it hasn't been a problem because the pages I put them on were also white, so all was well.
    The problem is that this time, I need for that icon to be black, and I cannot make it turn to black. The standard icon is fine (doesn't show) in Opera and Firefox, but there are little white squares where the icon is in both Explorer and Safari.
    I've checked and unchecked the "is hidden" box; I've changed the palette options to all three - default, background and foreground. What else can I try? Any and all suggestions welcome! The site is ready to roll out except for these four little obnoxious boxes!

    Thanks so much. The wmode="transparent" fix worked!
    I searched the forums before I posted and saw the above message. The problem didn't sound exactly like mine (my white boxes were there all the time, not just when the Flash file started). I even tried the other suggestion first, which didn't work for me. I never saw the wmode one.
    Thanks again!

  • Batch replace color with another color

    Hi,
    I would desperately need some assistance in trying to accomplish batch editing of ai-files via JavaScript.
    What I would need to do, is go through a number (many!) of files, find items with certain swatch color (referenced by its name), and replace the item-fill with another swatch-color (also referenced by its name). Then save the document with another name.
    Other parts I have managed to do, except find/compare/modify the fill color of an item.
    I have gone through these forums and tried a number of things to a point where I am currently very confused and frustrated 
    Some details (if it helps any), I'm using Illustrator CS3 and JavaScript.
    Here's the closest where I got with trying to find a certain color and eventually changing it:
    #target illustrator
    var sourceFile, findColor, replaceColor;
    sourceFile = new File().openDlg('Please select your Illustrator file…');
    open(sourceFile);
    var docRef = app.activeDocument;
    findColor = docRef.swatches.getByName("vih");
    // replaceColor not yet used anywhere
    replaceColor = docRef.swatches.getByName("sin");
    for(var obj = docRef.pageItems.length - 1; obj >= 0; obj--) {
        if(docRef.pageItems[obj].fillColor == findColor) {
            alert("Match found"); //It never seems to get here, so my comparison clearly is not working?
        else {
            alert ("No specified color found!");
    docRef.close();
    (and yes, I'm completely new with java-scripting, so even this is constructed from bits of sample-scripts and other scripts found from these forums)
    Please, I would really appreciate any help, this can't really be such a difficult task to do... can it?
    BR,
    Johanna

    I only tried a very basic test in my case ALL path items were filled with various CMYK swatches and the swap did take place so the comparison did work. I would suspect that you have a path item that contains NO fill so any of its properties would be undefined. You can also include this in your code too. This should work for both filled and stroked path items in CMYK art.
    #target illustrator
    var docRef = app.activeDocument;
    with (docRef) {
    var findColor = swatches.getByName('vih').color;
    var replaceColor = swatches.getByName('sin').color;
    for (var i = 0; i < pathItems.length; i++) {
    if (pathItems[i].filled == true) {
    with (pathItems[i].fillColor) {
    if (cyan == findColor.cyan && magenta == findColor.magenta && yellow == findColor.yellow && black == findColor.black) {
    $.writeln('True');
    cyan = replaceColor.cyan, magenta = replaceColor.magenta, yellow = replaceColor.yellow, black = replaceColor.black;
    } else {
    $.writeln('False');
    if (pathItems[i].stroked == true) {
    with (pathItems[i].strokeColor) {
    if (cyan == findColor.cyan && magenta == findColor.magenta && yellow == findColor.yellow && black == findColor.black) {
    $.writeln('True');
    cyan = replaceColor.cyan, magenta = replaceColor.magenta, yellow = replaceColor.yellow, black = replaceColor.black;
    } else {
    $.writeln('False');
    //saveAs(filePath, saveOptions)

  • Color Replace Feature in PRE 9 - can't find it ? Deleted from PRE 8?

    I found this information in Adobe's help for Premiere Elements 8:
    Color Replace
    The Color Replace effect replaces all occurrences of a selected color with a new color, preserving any gray levels. Using this effect, you could change the color of an object in a clip by selecting it, and then adjusting the controls to create a different color.
    Replace a color
    Apply the effect.
    In the Tasks panel, select the effect and click the Edit Effects button. Then click the Setup button to the right of the effect name.
    In the Color Replace dialog box, select the color you want to replace by clicking a color in the Clip Sample area on the left (the pointer becomes an eyedropper), or by clicking the Target Color swatch and selecting a color in the Color Picker dialog box.
    Choose the replacement color by clicking the Replace Color swatch.
    Broaden or reduce the range of the color you’re replacing by dragging the Similarity slider.
    Select the Solid Colors property to replace the specified color without preserving any gray levels, and click OK.
    Click Done 
    HOWEVER - in Premiere Elements 9 - when you click the Edit Effects button there IS NOT "SETUP BUTTON" to the right of the effect name....??? Thus, there is no Color Replace dialog box, etc...... The only thing to the right of the Image Control effect name is the little stopwatch icon...
    Am I missing something, or did something change in this version??
    Thanks for your help!
    Kim

    Thanks for that clarification on the platform.
    As for the screen-cap, that could be just a difference between PrE 8 and PrE 9, or could be a difference between platform versions.
    Though it's for PrPro CS4, here is an old list of the "missing" Effects between the PC and the Mac. I am sure that things changed with PrPro CS5, and also for PrE, with PrE 9 for the PC and for the Mac, but look down at the Color Effects:
    Remember, different programs (PrPro and PrE), and also a couple of years difference as well.
    Good luck,
    Hunt
    PS - you will probably want to download the PNG, and open it in PS, or similar, to read it clearly.

  • Dynamic series in flash chart & color specified for each series

    Example of data:
    Date     Series 1     Series 2     Series 3     Series 4     Series 5     Series 6     Series 7     Series 8
    A     12     22     23     22     22     10     10     10
    B     10     9     55     8     8     20     20     20
    C     55     2     5     88     5     15     15     15
    In excel, I can get a stacked horizontal bar chart with the numbers of different series stacked and it is easy to specify the color for each series (it works with Dephi aslo).
    I use a PL/SQL to generate the dynamic series for the chart. And in my application, I need to show some serires with the same color (group of series, each has a specified color). One of the solution I am trying is to input a fixed color sequence and loop it many times in the custom color theme and then insert dummy series into the SQLS. But this could be a disaster while the number of group goes up.
    Anyone has better idea on this? Or is this a limiation of apex?
    Thanks.

    As I tried, apex can support 300 series at most. Dynamic series here is not a good solution still.

  • Can't set up irssi colors

    I'm feeling really... stupid. I just can't set up irssi colors, almost ashame for asking advice on this
    Here's my theme (just cloned the default theme):
    # When testing changes, the easiest way to reload the theme is with /RELOAD.
    # This reloads the configuration file too, so if you did any changes remember
    # to /SAVE it first. Remember also that /SAVE overwrites the theme file with
    # old data so keep backups :)
    # TEMPLATES:
    # The real text formats that irssi uses are the ones you can find with
    # /FORMAT command. Back in the old days all the colors and texts were mixed
    # up in those formats, and it was really hard to change the colors since you
    # might have had to change them in tens of different places. So, then came
    # this templating system.
    # Now the /FORMATs don't have any colors in them, and they also have very
    # little other styling. Most of the stuff you need to change is in this
    # theme file. If you can't change something here, you can always go back
    # to change the /FORMATs directly, they're also saved in these .theme files.
    # So .. the templates. They're those {blahblah} parts you see all over the
    # /FORMATs and here. Their usage is simply {name parameter1 parameter2}.
    # When irssi sees this kind of text, it goes to find "name" from abstracts
    # block below and sets "parameter1" into $0 and "parameter2" into $1 (you
    # can have more parameters of course). Templates can have subtemplates.
    # Here's a small example:
    # /FORMAT format hello {colorify {underline world}}
    # abstracts = { colorify = "%G$0-%n"; underline = "%U$0-%U"; }
    # When irssi expands the templates in "format", the final string would be:
    # hello %G%Uworld%U%n
    # ie. underlined bright green "world" text.
    # and why "$0-", why not "$0"? $0 would only mean the first parameter,
    # $0- means all the parameters. With {underline hello world} you'd really
    # want to underline both of the words, not just the hello (and world would
    # actually be removed entirely).
    # COLORS:
    # You can find definitions for the color format codes in docs/formats.txt.
    # There's one difference here though. %n format. Normally it means the
    # default color of the terminal (white mostly), but here it means the
    # "reset color back to the one it was in higher template". For example
    # if there was /FORMAT test %g{foo}bar, and foo = "%Y$0%n", irssi would
    # print yellow "foo" (as set with %Y) but "bar" would be green, which was
    # set at the beginning before the {foo} template. If there wasn't the %g
    # at start, the normal behaviour of %n would occur. If you _really_ want
    # to use the terminal's default color, use %N.
    # default foreground color (%N) - -1 is the "default terminal color"
    default_color = "-1";
    # print timestamp/servertag at the end of line, not at beginning
    info_eol = "false";
    # these characters are automatically replaced with specified color
    # (dark grey by default)
    replaces = { "[]=" = "%K$*%n"; };
    abstracts = {
    ## generic
    # text to insert at the beginning of each non-message line
    line_start = "%B-%n!%B-%n ";
    # timestamp styling, nothing by default
    timestamp = "%K$*%n";
    # any kind of text that needs hilighting, default is to bold
    hilight = "%_$*%_";
    # any kind of error message, default is bright red
    error = "%R$*%n";
    # channel name is printed
    channel = "%_$*%_";
    # nick is printed
    nick = "%_$*%_";
    # nick host is printed
    nickhost = "[$*]";
    # server name is printed
    server = "%_$*%_";
    # some kind of comment is printed
    comment = "[$*]";
    # reason for something is printed (part, quit, kick, ..)
    reason = "{comment $*}";
    # mode change is printed ([+o nick])
    mode = "{comment $*}";
    ## channel specific messages
    # highlighted nick/host is printed (joins)
    channick_hilight = "%C$*%n";
    chanhost_hilight = "{nickhost %c$*%n}";
    # nick/host is printed (parts, quits, etc.)
    channick = "%c$*%n";
    chanhost = "{nickhost $*}";
    # highlighted channel name is printed
    channelhilight = "%c$*%n";
    # ban/ban exception/invite list mask is printed
    ban = "%c$*%n";
    ## messages
    # the basic styling of how to print message, $0 = nick mode, $1 = nick
    msgnick = "%K<%y$0%n$1-%K>%n %|";
    # message from you is printed. "msgownnick" specifies the styling of the
    # nick ($0 part in msgnick) and "ownmsgnick" specifies the styling of the
    # whole line.
    # Example1: You want the message text to be green:
    # ownmsgnick = "{msgnick $0 $1-}%g";
    # Example2.1: You want < and > chars to be yellow:
    # ownmsgnick = "%Y{msgnick $0 $1-%Y}%n";
    # (you'll also have to remove <> from replaces list above)
    # Example2.2: But you still want to keep <> grey for other messages:
    # pubmsgnick = "%K{msgnick $0 $1-%K}%n";
    # pubmsgmenick = "%K{msgnick $0 $1-%K}%n";
    # pubmsghinick = "%K{msgnick $1 $0$2-%n%K}%n";
    # ownprivmsgnick = "%K{msgnick $*%K}%n";
    # privmsgnick = "%K{msgnick %R$*%K}%n";
    # $0 = nick mode, $1 = nick
    ownmsgnick = "{msgnick $0 $1-}";
    ownnick = "%_$*%n";
    # public message in channel, $0 = nick mode, $1 = nick
    pubmsgnick = "{msgnick $0 $1-}";
    pubnick = "%N$*%n";
    # public message in channel meant for me, $0 = nick mode, $1 = nick
    pubmsgmenick = "{msgnick $0 $1-}";
    menick = "%Y$*%n";
    # public highlighted message in channel
    # $0 = highlight color, $1 = nick mode, $2 = nick
    pubmsghinick = "{msgnick $1 $0$2-%n}";
    # channel name is printed with message
    msgchannel = "%K:%c$*%n";
    # private message, $0 = nick, $1 = host
    privmsg = "[%R$0%K(%r$1-%K)%n] ";
    # private message from you, $0 = "msg", $1 = target nick
    ownprivmsg = "[%r$0%K(%R$1-%K)%n] ";
    # own private message in query
    ownprivmsgnick = "{msgnick $*}";
    ownprivnick = "%_$*%n";
    # private message in query
    privmsgnick = "{msgnick %R$*%n}";
    ## Actions (/ME stuff)
    # used internally by this theme
    action_core = "%_ * $*%n";
    # generic one that's used by most actions
    action = "{action_core $*} ";
    # own action, both private/public
    ownaction = "{action $*}";
    # own action with target, both private/public
    ownaction_target = "{action_core $0}%K:%c$1%n ";
    # private action sent by others
    pvtaction = "%_ (*) $*%n ";
    pvtaction_query = "{action $*}";
    # public action sent by others
    pubaction = "{action $*}";
    ## other IRC events
    # whois
    whois = "%# $[8]0 : $1-";
    # notices
    ownnotice = "[%r$0%K(%R$1-%K)]%n ";
    notice = "%K-%M$*%K-%n ";
    pubnotice_channel = "%K:%m$*";
    pvtnotice_host = "%K(%m$*%K)";
    servernotice = "%g!$*%n ";
    # CTCPs
    ownctcp = "[%r$0%K(%R$1-%K)] ";
    ctcp = "%g$*%n";
    # wallops
    wallop = "%_$*%n: ";
    wallop_nick = "%n$*";
    wallop_action = "%_ * $*%n ";
    # netsplits
    netsplit = "%R$*%n";
    netjoin = "%C$*%n";
    # /names list
    names_prefix = "";
    names_nick = "[%_$0%_$1-] ";
    names_nick_op = "{names_nick $*}";
    names_nick_halfop = "{names_nick $*}";
    names_nick_voice = "{names_nick $*}";
    names_users = "[%g$*%n]";
    names_channel = "%G$*%n";
    # DCC
    dcc = "%g$*%n";
    dccfile = "%_$*%_";
    # DCC chat, own msg/action
    dccownmsg = "[%r$0%K($1-%K)%n] ";
    dccownnick = "%R$*%n";
    dccownquerynick = "%_$*%n";
    dccownaction = "{action $*}";
    dccownaction_target = "{action_core $0}%K:%c$1%n ";
    # DCC chat, others
    dccmsg = "[%G$1-%K(%g$0%K)%n] ";
    dccquerynick = "%G$*%n";
    dccaction = "%_ (*dcc*) $*%n %|";
    ## statusbar
    # default background for all statusbars. You can also give
    # the default foreground color for statusbar items.
    sb_background = "%4%w";
    # default backround for "default" statusbar group
    #sb_default_bg = "%4";
    # background for prompt / input line
    sb_prompt_bg = "%n";
    # background for info statusbar
    sb_info_bg = "%8";
    # background for topicbar (same default)
    #sb_topic_bg = "%4";
    # text at the beginning of statusbars. sb-item already puts
    # space there,so we don't use anything by default.
    sbstart = "";
    # text at the end of statusbars. Use space so that it's never
    # used for anything.
    sbend = " ";
    topicsbstart = "{sbstart $*}";
    topicsbend = "{sbend $*}";
    prompt = "[$*] ";
    sb = " %c[%n$*%c]%n";
    sbmode = "(%c+%n$*)";
    sbaway = " (%GzZzZ%n)";
    sbservertag = ":$0 (change with ^X)";
    sbnickmode = "$0";
    # activity in statusbar
    # ',' separator
    sb_act_sep = "%c$*";
    # normal text
    sb_act_text = "%c$*";
    # public message
    sb_act_msg = "%W$*";
    # hilight
    sb_act_hilight = "%M$*";
    # hilight with specified color, $0 = color, $1 = text
    sb_act_hilight_color = "$0$1-%n";
    It's almost the way I want it, but a couple of things:
    - I want everyone nickname but mine in gray
    - I want the join/quit text (... has joined/quit) in gray
    - I want the mode (@, +, etc) in yellow
    I tried to format the text according irssi site, but without luck.
    For example tried this to change others nickname color:
    pubmsgnick = "{msgnick %y$0%n %K$1%n-}";
    pubnick = "%K$*%n";
    and this for the quit msg
    # mode change is printed ([+o nick])
    mode = "{comment %K$*%n}";
    # nick/host is printed (parts, quits, etc.)
    channick = "%c$*%n";
    chanhost = "{nickhost %c$*%n}";
    all without any luck. Also tried to put the format strings outside the curly braces, with the same result. I've been editing the config file for a while now, not sure what other information could you possibly need.
    I know it's not a big deal, I stil can use the program with no hassle, but it would really be nice to set the colors like that, to help me distinguish between lines.
    Thank you for reading, and sorry for my lousy english

    Nobody can tell you anything without proper system info or other technical details.
    Mylenium

Maybe you are looking for