Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
palmkenl
palmkenl's Profile
3
Posts
6
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Color to Hue
[8 Replies]
07-Dec-2012 01:20 AM
Forum:
Programming Questions
The user can define H, B and possibly S too, in tint(),
tint(colorInt,200,LBrightness);
The default color is in RGB, thus has to be converted.
Which would be this case:
color lighting = color (LRed,LGreen,LBlue);
I'm not sure what to do next, I have tried several ways, but they all end up incorrectly.
the value in lighting has to end up as colorInt, with the exact same color.
I assume I have to use the 'a' values in colorMode?
colorMode(HSB,a,a,a);
Oh yeah, the user can use every color he desires, so a limitation for color radius can't be applied.
Using string in tint
[5 Replies]
06-Dec-2012 11:54 AM
Forum:
Programming Questions
String
lightingString;
void draw() {
image(temperat,0,0);
colorMode(HSB);
tint(lightingString,180,LBrightness);
I want to use a RGB to hex converted value in tint, but it won't accept it. Is there any way I can use the converted RGB value in tint?
Loading array with comma
[1 Reply]
01-Oct-2012 03:28 AM
Forum:
Programming Questions
Hi,
I'm working on a program that loads a configuration file and then compares it to a file created by the user. An example:
This is what the configuration file says, it's basically a template for the user to work with.
[ActionsMO3]
0=...
(...)
13=Begin autocreate of (House) ...,0,2,0,0,0,0,0,0,0,Causes the specified House to create teams as it sees fit (IQ>2).,0,1,13
(...)
145=...
And then there are other things like
[ParamTypes] and [EventsMO3] that need to be handled seperatly.
The program should look for these headers in the INI file then load everything after it until the next header.
It should ignore the text at the start, and everything after the zero's.
Does someone know how to create a method that loads everything this way?
If anyone wants to help me with the total program, that would be supreme awesomeness.
«Prev
Next »
Moderate user : palmkenl
Forum