Jump to content

bLAcKmAgE87

RGB colors in a rainbow Atzema Spiral

Recommended Posts

I am trying to work on my RGB colors and rainbows. Here I have a circle and a spiral. They were created with arrays from other scripts. A 3-d lines joins each tick mark to the origin. 
Simply put: 

I am trying to make the rainbow as I increment across the many tick marks formed by the graph. 
I have tried a few things, and noticed that most don't use a parametric scheme, but rather through literal hexadecimal codes.
We need only increment and reach the limit of pi or 2*pi whatnot. 
Maybe you can help... how do increment R G B across one revolution? Or just from 0 to 1 as I think I have here. (...well 0 to 1 plus whatever I want to min. as a starter)

?imw=5000&imh=5000&ima=fit&impolicy=Lett?imw=5000&imh=5000&ima=fit&impolicy=Lett?imw=5000&imh=5000&ima=fit&impolicy=Lett?imw=5000&imh=5000&ima=fit&impolicy=Lett

  Reveal hidden contents


https://mathworld.wolfram.com/AtzemaSpiral.html
https://community.bistudio.com/wiki/Lightpoint_Tutorial

Can't quite get the blue to darken up. 
If you want to know more about how I made the arrays from other scripts ( powershell ISE ) LMK and I'll post it here. 

  • Thanks 1

Share this post


Link to post
Share on other sites

...working on rotations and parametric equations... I'll dump some text here later.
(going  a little further in math)

?imw=5000&imh=5000&ima=fit&impolicy=Lett

graph above is a cheapshot w/o rotations
if only 'default' was a function ... like _this = default or player = default or _car1equip = default.. which reverts the object to its very first call in the compiler
 

  • Like 1

Share this post


Link to post
Share on other sites

(still wondering with what code you achieved this)

(and what LMK is: a collaboration suite?)

(and... to what end you are doing this. Although I admit that does not really matter)

  • Haha 1

Share this post


Link to post
Share on other sites
  On 9/2/2022 at 5:55 PM, Melody_Mike said:

(still wondering with what code you achieved this)

(and what LMK is: a collaboration suite?)

(and... to what end you are doing this. Although I admit that does not really matter)


I have just started this... I am also making an animated rainbow atm... I intend to use other functions and graphs.... include tangent lines...etc... the idea is to make a very peaceful and active mathematical learning environment in Arma . 

Look at these powershell codes... this one defines the spiral above.
Well... first... open powershellISE on your windows computer if you can and get used to that.. all windows usually have one (it)

 

  Reveal hidden contents

....ok so that one is a bit weird... look at this simple circle then... that doesn't use a modulo arithmetic for its final array....

 

  Reveal hidden contents



that's obviously nuts... you just get a text file in your mission if you got one there...... try to create the directories before using these first so you

don't wipe your stuff...
anyways

 

its defines an array of coordinates for a circle with a 1000 tick marks with the definitions inputted... the spiral as well... although that one is a little confusing...

With some A3 scripts....lets look...these are called to draw on the map without any rotations thus far...
letslookletslook hei = height in init
 

  Reveal hidden contents


... which will call this to draw a single and specific object...

 

  Reveal hidden contents

...what terrrible code! theres old stuff all over the place! nonetheless.. objects are placed which create the spiral... the rainbow is then called....
I have that shown above as a single and simple test call. 
posQ1 is where I have a point or position where the graph will start... even though its not in init... still global working

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

For starters: is there a reason you use an elaborate method of defining $spot$dir1 instead of getMissionPath?

I will dive into catacaustics when I'm feeling more optimistic about my ability to surprise myself (eg: not at the end of the working week). 

  • Haha 1

Share this post


Link to post
Share on other sites
  On 9/2/2022 at 8:15 PM, Melody_Mike said:

For starters: is there a reason you use an elaborate method of defining $spot$dir1 instead of getMissionPath?

I will dive into catacaustics when I'm feeling more optimistic about my ability to surprise myself (eg: not at the end of the working week). 




I like the getMissionPath... I'll probably use it... but thats powershell script... without any api... 

that's not for Arma so getMissionPath isn't a function

Sorry... your looking at two languages or file types...

a .sqf

and a .ps1

 

in case you've never heard of or used powershell... 

all windows have em
https://docs.microsoft.com/en-us/powershell/

 

i didn't that 'bat" or $ could work in Arma... lol

  • Haha 1

Share this post


Link to post
Share on other sites

I wana play a game of pass the AI ... (the object or unit with AI) .. one player.. to another.. with stuff 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×