• Welcome to TodayPlus Boards v2.
 

(new) LTwisted0.11.0

Started by Lordtwisted, January 04, 2004, 12:02:24 PM

Previous topic - Next topic

dtidmore

I have changed the sun/moon section to remove the static moon phase icon(on the far right). I left the moonphase wording but moved them together.  I am using the imagemeter to display the rising and setting moon icons based on the phase.  This is pretty straight forward.

calcvar,var10,*,%var7%,25
imagemeter,97,9,%var10%,moon_phases.png,tr,0,200
imagemeter,151,17,%var10%,moon_phases.png,tr,0,200

I left var7 alone (it is simply the moonphase valve) as it is used elsewhere in the skin.  The moon_phases.png can be found in the latest CalendarPlusv11 skin.  As each moon phase in the moon_phases.png is 25 pixels across the moonphase return value must be multiplied by 25 to reach the starting location of each image.  

This change also opens up more area for future data.

david

Broesel

Quote from: dtidmore
calcvar,var10,*,%var7%,25
imagemeter,97,9,%var10%,moon_phases.png,tr,0,200
imagemeter,151,17,%var10%,moon_phases.png,tr,0,200

Well David, when you're using the imagemeter-command you should use
the right syntax as displayed in my moonphase-thread:
Here is a sample code using the imagemeter command to display the moon phases.
Code:

calcvar,var30,moonphase,1
imagemeter,0,0,%var30%,moon phases.png,tr,0,7

That code you are using gives you the wrong moonphase on some days.
Greetings Broesel

Lordtwisted

QuoteI have changed the sun/moon section to remove the static moon phase icon(on the far right). I left the moonphase wording but moved them together. I am using the imagemeter to display the rising and setting moon icons based on the phase. This is pretty straight forward.

calcvar,var10,*,%var7%,25
imagemeter,97,9,%var10%,moon_phases.png,tr,0,200
imagemeter,151,17,%var10%,moon_phases.png,tr,0,200

I left var7 alone (it is simply the moonphase valve) as it is used elsewhere in the skin. The moon_phases.png can be found in the latest CalendarPlusv11 skin. As each moon phase in the moon_phases.png is 25 pixels across the moonphase return value must be multiplied by 25 to reach the starting location of each image.

This change also opens up more area for future data.

david
It is not static it changes with the moon phases.
Ok why, This change also opens up more area for future data. how?
And i did it my way becouse I use my moon icons i created and they look alot better than the moon_phases.png I am not sure why you wrote this.


Lordtwisted :D

Broesel

QuoteAnd i did it my way becouse I use my moon icons i created and they look alot better than the moon_phases.png I am not sure why you wrote this.
Hey hey, the moon_phases.png is mine and I love them and the code for
the moon phases is from me. Dont blame my moonphases  :lol:

But as I like your skin and use it for me, I may not have to say anything  :wink:

Greetings Broesel  :)  :)

Lordtwisted

Hey hey, the moon_phases.png is mine and I love them and the code for
the moon phases is from me. Dont blame my moonphases  

But as I like your skin and use it for me, I may not have to say anything  

Greetings Broesel


Sorry bro,
didn't mean no offense.
 You'r pics are fine It's just that The pics that i made use full transperance thats all so to me they look better, as for the code its fine i didn't say anything about the code I am not blamming nothing, actualy i like the code but i went a diffrent route. lol

Lordtwisted :D

dtidmore

LordTwisted,
I did not mean to offend.  I think something was missed here.  I simply used moon_phases.png as they were ready and available for use with the imagemeter.  I agree that I like your transparent moons a bit better and am in the process of pulling them into a single png.  What I think was missed is that in v11 of your skin, the moon icons DIRECTLY below the words Rise and Set were static.  To the right of those was a dynamic moon that did change phases.  What I changed was to make the moons DIRECTLY below the words Rise and Set into dynamic moons and then I eliminated the dynamic moon that was to the right.  This way I see the moon phase by simply looking at the rise and set moon icons.  I like the look of two moon icons that are both dynamic in phase to the 2 static and one dynamic.  

Broesel,
On the matter of the correct syntax for the imagemeter, please help me a bit on my understanding of the imagemeter command:

Here is my syntax:
calcvar,var7,moonphase,1
calcvar,var10,*,%var7%,25
imagemeter,97,9,%var10%,moon_phases.png,tr,0,200
imagemeter,151,17,%var10%,moon_phases.png,tr,0,200


Here is your syntax:
calcvar,var30,moonphase,1
imagemeter,0,0,%var30%,moon phases.png,tr,0,7


The difference is that I setup a separate variable, var10, as I wanted to leave var7 as originally calculated.  My understanding was that you had to pass in a pixel offset to imagemeter so that it would know where to begin in the png file.  In my case, using your moon_phases.png, each phase is 25 pixel in width.  var7 is a number from 0 to 7.  If I use your syntax it seems that with each phase I would just be starting a single pixel to the right at each phase, rather than 25 pixels * the phase number.  Please correct any misunderstanding that I may have.  I have a long programming history, but I am new to T+ syntax.

Thanks
david

Lordtwisted

dtidmore,

   It's cool. I did misunderstand you though. Yea i do like the rise and set of the moon, but what are you pulling you'r info from the phases of the moon? Like i have my sun rise and set with 10 diffrent images in the new vwesion, and asked srs to put a calc var for the elevation, so it works sweet. but for the moon?


Lordtwisted :D

Broesel

Hi David,
please read this thread to understand what I mean:
http://www.dark-mojo.com/todayplus/viewtopic.php?t=1102
here is the correction from fishboy to the imagemeter-code:
http://www.dark-mojo.com/todayplus/viewtopic.php?t=1102&postdays=0&postorder=asc&&start=37
and the explanation of srs to the imagemeter:
http://www.dark-mojo.com/todayplus/viewtopic.php?t=1130

@Lordtwisted:
QuoteSorry bro,
didn't mean no offense.
You'r pics are fine It's just that The pics that i made use full transperance thats all so to me they look better, as for the code its fine i didn't say anything about the code I am not blamming nothing, actualy i like the code but i went a diffrent route. lol

No problem, I'm not as good as you to make graphics, so everybody
goes his way to make it as he likes  :lol:

Greetings Broesel  :D

Broesel

Quote from: dtidmore
Here is my syntax:
calcvar,var7,moonphase,1
calcvar,var10,*,%var7%,25
imagemeter,97,9,%var10%,moon_phases.png,tr,0,200
imagemeter,151,17,%var10%,moon_phases.png,tr,0,200

Here is your syntax:
calcvar,var30,moonphase,1
imagemeter,0,0,%var30%,moon phases.png,tr,0,7


And you can move the calcvar,var7,moonphase,1 before the mooncode
in weatherpage 300 so that the moon there is displayed the right way.
Then make a second calcvar in region 0:
calcvar,var10,moonphase,1 and the imagemeter:
imagemeter,0,0,%var10%,moon phases.png,tr,0,7

Greetings Broesel

dtidmore

Broesel,
Thanks for the help.  I had already found those threads and read them, but it was not clear which syntax was corrent.  I have change my syntax.  It makes sense how it works, and it really did not when I was using the syntax that multiplied the moonphase by 25.  I can see how the underlying code could easily determine the overall pixel length of the png file and then with the min/max number determine how to move appropriately across the png.  Thanks for your patience.

LordTwisted,
I am anxious for v12 of T+ so that I can get your sun elevation code working.  I think that will really be cool.  As I have not seen exactly what you are planning (I have only deduced from the commented-out code), I am wondering if you plan to just have the sun rise and fall in a vertical path, or do you plan to have the sun rise to the left, travel to the left as it continues thru the day and then finally set to the right (ie an animation of the current static rise/set)?  This would be cool.  Being new T+, I am still learning what tools I have at my disposal, but this would not be difficult in any other programming language.

Also, on the moon phase thing.  I am not trying to have the moon rise and fall dynamically like you are planning for the sun.  All I was doing was allowing the static icons for rise and fall to reflect the moon phase.  I think it would be cool to have them ACTUALLY rise and fall at the appropriate time, but do we have a moon elevation capability in T+?   I would also like more than 8 moon phases.  I would actually like to have 29 so that we could have the moon phase icon actually represent the REAL moon phase rather than just something close, but that would require SRS to enhance moonphase so that it returned the actual day of the moonphase.

I don't know if you get into cooking your own version of the PPC OS, but I have been involved in that for several months.  That is how I got WM2003 on my SX-56 (officially, neither AT&T or T-Mobile have released it yet).  At any rate, one of the utilities that you can cook into the base OS is the program "Ephemeris" that calculates  the moonphase, sun and moon rise, asimuth and elevation of sun and moon at 15min intervals over each 24 hour period, a full month calendar showing the moon phase for each day and a compass that shows the compass position of the sun and moon rise.  It is really a cool little utility.

Thanks again

david :D

dtidmore

LordTwisted,
Thought I would just post a pic of the change I made to sun/moon page regarding the moon area.  Note that the moon icons located in the rise/set time areas reflect the current phase and that I eliminated that third moon icon as it was redundant.  

david

Lordtwisted

ok i got ya, they don't rise and set they change phases. looks good :cool2: .


I have to check that programe out. Is it freeware?

Lordtwisted :D

tonyaross

Hi, LT, you know that appointments on the calendar disappear when overdue? Some of us are wondering whether there is a way to keep them in view, but have them crossed out with a line. It'll be great if we can do that. Thanks!

Tonya

Lordtwisted

tonya i will check in to that.

Lordtwisted :D

tonyaross

Thanks, Lord. You are great.