|
Author |
Topic: documenting the use of Point() (Read 368 times) |
|
mKoser
|
documenting the use of Point()
« on: Apr 28th, 2003, 4:36pm » |
|
Hi, I regularly use the Point(x, y) because it enables me to read x and y values from one variable - will there be a similar command in Proce55ing or will the pure java command be included at some point? if so, here's a suggestion for the example which could be in the help file or in the examples folder (structure): // Point_example // mikkel . crone . koser // www.beyondthree.com // april 25.th 2003 Point pt = new Point(mouseX, mouseY);; void setup(){ size(200, 200); background(#444444); noFill(); stroke(255, 102, 0); } void loop(){ rect(0, 0, pt.x, pt.y); pt.x = mouseX; pt.y = mouseY; }
|
mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
|
|
|
fry
|
Re: documenting the use of Point()
« Reply #1 on: May 1st, 2003, 5:12am » |
|
we haven't really made a decision about having primitive objects like that (Point, Rect, etc). they're useful but we may just encourage people to use the java versions, since those are likely being used by slightly more advanced users anyway. i can't tell from your message, but are you also saying that the code you show doesn't work in the current release? it shouldn't have any trouble (unless something fishy is happening).
|
|
|
|
mKoser
|
Re: documenting the use of Point()
« Reply #2 on: May 1st, 2003, 3:31pm » |
|
ok. it was meerely a suggestion. the code i pasted in works fine, the reason for pasting it in was to offer a suggestion to how the use of Point() could be described in the P5-helpfile. - mikkel
|
mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
|
|
|
fry
|
Re: documenting the use of Point()
« Reply #3 on: May 1st, 2003, 3:53pm » |
|
yeah, i think you're right. it also points to the broader issue of just talking more about useful java integration--actually documenting some of the more java-oriented things that people might want to use, and how to make them play along with p5 code.
|
|
|
|
pollux
|
documenting the use of Java
« Reply #4 on: May 1st, 2003, 7:46pm » |
|
talking about documenting, does somebody knows an online (preferably user-friendly) documentation of the java language? i was thinking of something like a dictionary, grammar and syntax. i am used to macromedia and adobe-like help files, and now that processing has a well done reference, i was wondering if java has one online, or as a book.
|
pollux | www.frwrd.net
|
|
|
benelek
|
Re: documenting the use of Point()
« Reply #5 on: May 2nd, 2003, 5:02am » |
|
the stuff at http://java.sun.com/docs/books/tutorial/index.html is pretty complete, but at times hard to understand if you haven't done any in-depth programming before (like me!)... but it's pretty useful in getting a feel for the language in its raw form.
|
|
|
|
benelek
|
Re: documenting the use of Point()
« Reply #7 on: May 2nd, 2003, 3:12pm » |
|
the frames version is a bit more useable, but i still find it hard to use most of the packages. it'd be nice if the simplicity of Processing language could be applied across all/most of the java areas. there seems to be a whole depth of stuff that java is capable of, but which p5 only scratches the surface of. while p5 has certainly helped me make the initial leap into java programming, there is still a sizeable gap in terms of what p5 helps us learn about and what's out there.
|
|
|
|
pollux
|
Re: documenting the use of Point()
« Reply #8 on: May 2nd, 2003, 11:46pm » |
|
but seeing it from the other side, for me has been a quantum leap, as perhaps i'd have never gotten into java if not 'cause of P5. and java i like! i feel it paved a very quirky, muddy, pebbled road. and it still does, even though i have the feeling i want to know more of java (sound capabilities, networking)... edit: http://java.sun.com/j2se/1.4.1/docs/api/ gosh, this All Classes Help file seems it was exported from Word! (back to the stone age of web design)
|
« Last Edit: May 2nd, 2003, 11:50pm by pollux » |
|
pollux | www.frwrd.net
|
|
|
mKoser
|
Re: documenting the use of Point()
« Reply #9 on: May 6th, 2003, 1:01pm » |
|
Last summer (2002) I started struggeling with Java 1.4.1, but i hit a wall REALLY hard, and never managed to get past it - at the same time I started playing around with Proce55ing, and have enjoyed that the past year... this weekend I decided to start in Java again, and this time it is all starting to make sense - so far I've only done really basic things, but the basic understanding of the thinking (learned through P5) has really done the job ...just wanted to share that with you all!
|
« Last Edit: May 6th, 2003, 1:02pm by mKoser » |
|
mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
|
|
|
fry
|
Re: documenting the use of Point()
« Reply #10 on: May 6th, 2003, 5:40pm » |
|
that's great to hear, since that's one of our goals for the project. next you'll be outgrowing java and moving on to c++.
|
|
|
|
|