Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
Jabaco Source |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
Option Explicit Import processing#core Public Sub setup() size(800, 600, P3D) fill(204) End Sub Public Sub draw() lights() background(0) ' Change height of the camera with mouseY ' eyeX, eyeY, eyeZ ' centerX, centerY, centerZ ' upX, upY, upZ camera(30.0, mouseY, 220.0, _ 0.0, 0.0, 0.0, _ 0.0, 1.0, 0.0) ' create a box noStroke() box(90) stroke(255) ' create the 3 coordinate axis line(-100, 0, 0, 100, 0, 0) line(0, -100, 0, 0, 100, 0) line(0, 0, -100, 0, 0, 100) End Sub |
Jabaco Source |
|
1 2 3 4 5 6 7 |
Public Sub main(ByJava args() As String) Dim s() As String Redim s(0 To 1) s(0) = "--present" s(1) = "MyApp" '<-- name of the main class that extends PApplet PApplet.main(s) End Sub |