Results 1 to 8 of 8

Thread: Color to Numeric Relationship

  1. #1
    Join Date
    Jun 2009
    Location
    Oshawa ON
    Posts
    1,454

    Default Color to Numeric Relationship

    Hello all, I do hope everyone had a safe and happy Christmas.

    I have a question that a search of the F/L did not return any answer.

    In the cabviews, what are the "color" numbers for the numeric readouts? e.g. Digital Speedometer.

    For instance does "1" = White? "2" = Red? etc? I just want to change some colors of the numbers. My own idea for my enjoyment, maybe not prototypical, but easier for me to see and read various readouts.

    Also, I only use Open Rails.

    Thank You

  2. #2
    Join Date
    Feb 2013
    Location
    known universe
    Posts
    1,650

    Default

    Look for the ControlColour parameters in the cvf (cabview file). These are decimal representations of color - also in train sim files (like the engine lighting section the color parameters can be represented in hexadecimal values. >>> see here http://www.mathsisfun.com/hexadecima...al-colors.html )
    Three numbers represent the Red Green Blue values. Increasing the value equals an increase in that color. All three set to 255 equals white, conversely all parameters set to zero (zed) equals black.
    Also note the last line in the code ORTSfont... section 14.2.1 Configurable Fonts

    Code:
    Digital (
    			Type ( SPEEDOMETER DIGITAL )
    			Position ( 291 229 20 12 )
    			ScaleRange ( 0 200 )
    			Accuracy ( 0 )
    			AccuracySwitch ( 10 )
    			LeadingZeros ( 0 )
    			Justification ( 1 )
    			PositiveColour ( 2
    				ControlColour ( 193 255 203 )
    				SwitchVal ( 72 )
    				ControlColour ( 193 255 0 )
    			)
    			NegativeColour ( 0 )
    			DecreaseColour ( 0 )
    			Units ( MILES_PER_HOUR )
    			ORTSfont ( 11 1 "Digital-7 Mono" )
    		)
    Last edited by R. Steele; 12-26-2016 at 03:38 PM.
    Cheers, R. Steele [Gerry] It's my railroad and I'll do what I want! Historically accurate attitude of US Railroad Barons.


  3. #3
    Join Date
    Jun 2009
    Location
    Oshawa ON
    Posts
    1,454

    Default

    Ok, here is that portion of the cab view that I am using. I would like to have the numbers in dark green. Any idea which combination would give me that? and still retain the white background?

    LeadingZeros ( 0 )
    Justification ( 1 )
    PositiveColour ( 0
    ControlColour ( 30 30 30 )
    )
    NegativeColour ( 0 )
    DecreaseColour ( 0 )
    Units ( MILES_PER_HOUR )
    ORTSfont ( 10 0 "Segment7" )

    Thank you Gerry.

  4. #4
    Join Date
    Jun 2013
    Location
    Minnesota
    Posts
    1,185

    Default

    If you have a paint-style program, you can use that to establish what the color combination should be. I use paint.net and it's very easy with that to get with RGB values for things. I use that method to get signal light colors. I think MSPaint can do it, too, but I haven't used it in a long time, so I couldn't tell you exactly how

  5. #5
    Join Date
    Jan 2006
    Location
    Hanover Park, Il., USA.
    Posts
    8,974

    Default

    I do the same with PSP.
    Neil

    Here at home, in the railroad mayhem capital of the world.

  6. #6
    Join Date
    Feb 2013
    Location
    known universe
    Posts
    1,650

    Default

    Here's an online decimal (and hex) color converter. You can play around with the sliders until you get the color you like, the decimals numbers are displayed. Enter the result in the proper place in the cvf. In my (admittedly limited) experience with cabview creation the background color is determined when creating the cabview and can only be changed by opening the ace file with TGAtools and then exporting it to photoshop or other image program.

    https://www.easycalculation.com/colo...-converter.php

    Try 80 150 80 to begin with.

    Here >>> http://www.w3schools.com/colors/colors_picker.asp is a color picker. Just click on a dot in the color picker and the decimal and hex results are displayed along with the color.
    Last edited by R. Steele; 12-27-2016 at 01:30 PM.
    Cheers, R. Steele [Gerry] It's my railroad and I'll do what I want! Historically accurate attitude of US Railroad Barons.


  7. #7
    Join Date
    Jun 2009
    Location
    Oshawa ON
    Posts
    1,454

    Default

    Thank you very much Gerry, that gives my old brain something to work with.

    I will try both converters, they could come in handy again!

    Don

    edit: The first one gave me exactly what I wanted! Thank You.

    Mactier GP SB Empties.jpg
    Last edited by Don6218; 12-27-2016 at 04:01 PM.

  8. #8
    Join Date
    Feb 2013
    Location
    known universe
    Posts
    1,650

    Default

    Seasons Greetings, Don - Happy to help out.
    Cheers, R. Steele [Gerry] It's my railroad and I'll do what I want! Historically accurate attitude of US Railroad Barons.


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •