So I'm trying to create a bar graph that is randomly generated within processing. I figured this would be a more easier task than trying out external data sources.
I got the random() function from the references page and edited it according to what I thought would be right. Though currently as it sits, it does kind of randomly generate a random height of sorts... Except it's not how I wanted the "random height" just seems to be three bars the exact same height with random black lines flashing inside of them... So I figured that I did use the random() function properly more or less.
I would like some explanation though,
for (int i = 0; i < 100; i++) {
This line here from my un knowing grasp seems to be generating between 0 and 100? I don't understand what this does at all, so I decided to wing it and get rid of the top line and just stick with:
float h = random(10, 100);
it seems to actually generate a height, as soon as I drop noLoop(); into setup. But it seems to be generating this height in a backwards way with the bar graph being upside down, I figured that if I set random(10, 200); to random(-10, -200) that it would fix that there problem but that does not seem to be the case.
So my main interest in using Processing is that the visual abilities to display data seems to be quite endless. This seems to be a perfect way for me to develop FUI (Fantasy User Interface), into actual useable UI. I've spent a fair amount of time sitting around in photoshop/illustrator just laying down GUI for media players... Winamp, Xion, etc. And all sorts of screwed up FUI that I had no idea how to even make into a useable program/applet of any sort.
I want to switch it up and make my FUI a reality, I hope to actually one day take on a career in this field. I've gotten a *small* grasp of the basic's and I understand that I still have a long ways to go but I can't really seem to make much sense of the examples supplied with processing.
Anyone have a suggestion on where to start? Tutorials? Articles? So in order to help you help me I should give you an idea of what sort of GUI I want to start with...
Most of the applets that I'll be making will be displayed on a webpage and from my understanding that limits me a bit, but I'm fine with that. I'm very interested in making a UI for some sort of commonly found data, probably government statistics (number of deaths per year from cancer dating back twenty or so years) I want to make this applet have multiple options to select from on ways to display the data.
This sounds rather complicated with such a low understanding of Processing, but this is my goal for right now. Anything that will help me get to this (and I am pretty positive that this will take me many projects to achieve) will be nice.
So I'm currently working on getting my first real applet down.
void setup(){
size(550, 550);
}
void draw() {
point(mouseX, mouseY);
}
The snippet above would draw points where ever the mouse was moved to, which was cool. Now I'm trying to have the background colour and point colour change using mousePressed.
Please keep in mind that I'm the king of noobs right now, I honestly have no sort of understanding of what I'm doing and I'm trying to get a grasp of what seem like simple elements.
I'll answer a few questions before asking my own...
1: I would some day like to make a game.
2: Some day being key-words in that sentence.
3: I actually wish to start learning my into java with GUI's of my own.
4: I have a crazy idea for a full out java website that works off of wordpress.
5: This crazy website will be animated in multiple different ways and I'll probably have a long way to go before even getting to that.
6: I don't want to make the next minecraft.
7: I'm twenty, not thirteen.
9: I like pancakes.
10: You didn't notice that eight was missing.
11: This is just to troll you.
I'm hoping that processing will be a good start for me, it was recommended to me by a friend... Said it reminded her of Action Script which I haven't played with for years...
I have a basic understanding of programming, by basic I mean straight up basic. I have some experience with Eclipse which turns out to be a super handy tool. My understanding is that when I deal in HTML/CSS I write it from scratch, I don't use WYSIWYG web dev tools of any sort.
Hi!
EDIT/ This topic makes no sense... I'm not going to edit it, my main point is that I'm hoping someone here can let me know if processing is a good corner stone to start with, and if there is a fairly good variety of resources here that can help me learn about the things I'm interested in creating.