It is currently May 7th, 2024, 12:21 am

[Solved] help me set the color of the dots of "binary clock"

Get help with creating, editing & fixing problems with skins
iloahz
Posts: 8
Joined: November 28th, 2010, 1:25 pm

[Solved] help me set the color of the dots of "binary clock"

Post by iloahz »

the color of the dots is random every time it was loaded, i can't find where to set the color, help me
the skin is from the default theme in rainmeter_1.3

Code: Select all

[Rainmeter]
Update=100
MouseOverAction=!Execute [!RainmeterShowMeter BackgroundHover][!RainmeterShowMeter CloseIcon]
MouseLeaveAction=!Execute [!RainmeterHideMeter BackgroundHover][!RainmeterHideMeter CloseIcon]
Author=g00glen00b

;Metadata added by RainBrowser
;http://rainmeter.net/cms/Rainmeter101-EditingSkins

[Metadata]
Name=Binary Clock
Config=Rain?| Binary Clock
Description=You can view a 24h-format clock in binary format with this widget.
Instructions=There are four columns and 4 rows, every column is 1 of the four digits of the clock, two for the hour and two for the minute. | The rows are indicating the binary number, the top row has the value 8, the second row 4, the third 2 and the last 1. | By counting the numbers in a column together you get the value for that digit.
Version=2.0
Tags=Rain?| Time | Clock | Binary Clock
License=Creative Commons Attribution-NonCommercial-ShareAlike 3.0 
Variant=
Preview=#SKINSPATH#Rain2\Images\Preview.png

;End of added Metadata

[Variables]
@include=..\..\Variables.inc
@include2=#SKINSPATH#\#Project#\Skins\#Skin#\Skin.inc
@include3=#SKINSPATH#\#Project#\Skins\DrawBackground.inc
@include4=#SKINSPATH#\#Project#\Skins\Constants.inc
Width=110
Height=110

[Background]
Meter=IMAGE
X=0
Y=0
W=#Width#
H=#Height#
MeterStyle=BackgroundStyle

[Background2]
Meter=IMAGE
X=0
Y=0
W=#Width#
H=#Height#
MeterStyle=Background2Style

[BackgroundHover]
Meter=IMAGE
X=0
Y=0
W=#Width#
H=#Height#
MeterStyle=BackgroundHoverStyle
Hidden=1

[MeasureHour]
Measure=Time
Format=%H
UpdateDivider=10

[MeasureMinute]
Measure=Time
Format=%M
UpdateDivider=10

[Measure1]
Measure=Calc
Formula=1
UpdateDivider=100000

[MeasureH1]
Measure=Calc
Formula=FLOOR(MeasureHour/10)
IfAboveValue=1
IfAboveAction=!Execute [!RainmeterShowMeter Led12][!RainmeterHideMeter Led11]
IfEqualValue=1
IfEqualAction=!Execute [!RainmeterHideMeter Led12][!RainmeterShowMeter Led11]
IfBelowValue=1
IfBelowAction=!Execute [!RainmeterHideMeter Led12][!RainmeterHideMeter Led11]
UpdateDivider=10

[MeasureH2]
Measure=Calc
Formula=MeasureHour%10
IfAboveValue=7
IfAboveAction=!RainmeterShowMeter Led24
IfBelowValue=8
IfBelowAction=!RainmeterHideMeter Led24
UpdateDivider=10

[MeasureM1]
Measure=Calc
Formula=FLOOR(MeasureMinute/10)
IfAboveValue=3
IfAboveAction=!RainmeterShowMeter Led33
IfBelowValue=4
IfBelowAction=!RainmeterHideMeter Led33
UpdateDivider=10

[MeasureM2]
Measure=Calc
Formula=MeasureMinute%10
IfAboveValue=7
IfAboveAction=!RainmeterShowMeter Led44
IfBelowValue=8
IfBelowAction=!RainmeterHideMeter Led44
UpdateDivider=10

[MeasureLed23]
Measure=Calc
Formula=((MeasureH2 > 3) && (MeasureH2 < 8)) ? 1 : 0
IfEqualValue=1
IfEqualAction=!RainmeterShowMeter Led23
IfBelowValue=1
IfBelowAction=!RainmeterHideMeter Led23
UpdateDivider=10

[MeasureLed22]
Measure=Calc
Formula=((MeasureH2 = 2) || (MeasureH2 = 3) || (MeasureH2 = 6) || (MeasureH2 = 7)) ? 1 : 0
IfEqualValue=1
IfEqualAction=!RainmeterShowMeter Led22
IfBelowValue=1
IfBelowAction=!RainmeterHideMeter Led22
UpdateDivider=10

[MeasureLed21]
Measure=Calc
Formula=MeasureH2%2
IfEqualValue=1
IfEqualAction=!RainmeterShowMeter Led21
IfBelowValue=1
IfBelowAction=!RainmeterHideMeter Led21
UpdateDivider=10

[MeasureLed32]
Measure=Calc
Formula=((MeasureM1 = 2) || (MeasureM1 = 3)) ? 1 : 0
IfEqualValue=1
IfEqualAction=!RainmeterShowMeter Led32
IfBelowValue=1
IfBelowAction=!RainmeterHideMeter Led32
UpdateDivider=10

[MeasureLed31]
Measure=Calc
Formula=MeasureM1%2
IfEqualValue=1
IfEqualAction=!RainmeterShowMeter Led31
IfBelowValue=1
IfBelowAction=!RainmeterHideMeter Led31
UpdateDivider=10

[MeasureLed43]
Measure=Calc
Formula=((MeasureM2 > 3) && (MeasureM2 < 8)) ? 1 : 0
IfEqualValue=1
IfEqualAction=!RainmeterShowMeter Led43
IfBelowValue=1
IfBelowAction=!RainmeterHideMeter Led43
UpdateDivider=10

[MeasureLed42]
Measure=Calc
Formula=((MeasureM2 = 2) || (MeasureM2 = 3) || (MeasureM2 = 6) || (MeasureM2 = 7)) ? 1 : 0
IfEqualValue=1
IfEqualAction=!RainmeterShowMeter Led42
IfBelowValue=1
IfBelowAction=!RainmeterHideMeter Led42
UpdateDivider=10

[MeasureLed41]
Measure=Calc
Formula=MeasureM2%2
IfEqualValue=1
IfEqualAction=!RainmeterShowMeter Led41
IfBelowValue=1
IfBelowAction=!RainmeterHideMeter Led41
UpdateDivider=10

[LedStyle]
MeasureName=Measure1
StartAngle=4.712
RotationAngle=(#Pi#*2)
AntiAlias=1
LineWidth=1
Solid=1
LineLength=10
LineColor=#LedColor#
W=20
H=20

[Led11]
Meter=ROUNDLINE
MeterStyle=LedStyle
X=((#Width#-100)/2)
Y=(#Height#-25)
UpdateDivider=36000

[Led12]
Meter=ROUNDLINE
MeterStyle=LedStyle
X=0r
Y=-25r
UpdateDivider=36000

[Led21]
Meter=ROUNDLINE
MeterStyle=LedStyle
X=25r
Y=25r
UpdateDivider=36000

[Led22]
Meter=ROUNDLINE
MeterStyle=LedStyle
X=0r
Y=-25r
UpdateDivider=36000

[Led23]
Meter=ROUNDLINE
MeterStyle=LedStyle
X=0r
Y=-25r
UpdateDivider=36000

[Led24]
Meter=ROUNDLINE
MeterStyle=LedStyle
X=0r
Y=-25r
UpdateDivider=36000

[Led31]
Meter=ROUNDLINE
MeterStyle=LedStyle
X=25r
Y=75r
UpdateDivider=36000

[Led32]
Meter=ROUNDLINE
MeterStyle=LedStyle
X=0r
Y=-25r
UpdateDivider=36000

[Led33]
Meter=ROUNDLINE
MeterStyle=LedStyle
X=0r
Y=-25r
UpdateDivider=36000

[Led41]
Meter=ROUNDLINE
MeterStyle=LedStyle
X=25r
Y=50r
UpdateDivider=36000

[Led42]
Meter=ROUNDLINE
MeterStyle=LedStyle
X=0r
Y=-25r
UpdateDivider=36000

[Led43]
Meter=ROUNDLINE
MeterStyle=LedStyle
X=0r
Y=-25r
UpdateDivider=36000

[Led44]
Meter=ROUNDLINE
MeterStyle=LedStyle
X=0r
Y=-25r
UpdateDivider=36000

Last edited by iloahz on November 30th, 2010, 12:09 am, edited 1 time in total.
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: help me set the color of the dots of "binary clock"

Post by jsmorley »

This is not from a default skin with Rainmeter, but is from a skin called Rain2 available here: http://browse.deviantart.com/customization/skins/sysmonitor/rainmeter/?qh=&section=&q=rain2#/d2x9bv8
iloahz
Posts: 8
Joined: November 28th, 2010, 1:25 pm

Re: help me set the color of the dots of "binary clock"

Post by iloahz »

a, yes you are right, i forget i've downloaded another theme.

do you know where to set the color?
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: help me set the color of the dots of "binary clock"

Post by Kaelri »

It looks like there's a file called "Variables.inc," two folders up from the skin you posted. In that file, there should be a variable called "LedColor." If the skin is appearing in random colors, then it can't find the variable, which means that either the file or the variable don't exist.

Try adding the following line to the [Variables] section of the skin.

Code: Select all

LedColor=255,255,255
iloahz
Posts: 8
Joined: November 28th, 2010, 1:25 pm

Re: help me set the color of the dots of "binary clock"

Post by iloahz »

Kaelri wrote:It looks like there's a file called "Variables.inc," two folders up from the skin you posted. In that file, there should be a variable called "LedColor." If the skin is appearing in random colors, then it can't find the variable, which means that either the file or the variable don't exist.

Try adding the following line to the [Variables] section of the skin.

Code: Select all

LedColor=255,255,255
thank you very much! it works. still i have some doubts: can i set the transparency of the dots?
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: help me set the color of the dots of "binary clock"

Post by Kaelri »

Yes. Just add a fourth number to the color value. It ranges between 0 (invisible) and 255 (opaque), so for example, this value -

Code: Select all

LedColor=255,255,255,128
- will produce 50% transparency.
iloahz
Posts: 8
Joined: November 28th, 2010, 1:25 pm

Re: help me set the color of the dots of "binary clock"

Post by iloahz »

thank you guys very much!