| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10463,7 +10463,7 @@ public void normal(float nx, float ny, float nz) { | |||
| 10463 | 10463 | * NORMAL_SPACE is (0,0) (0,1) (1,1) (0,1). | |
| 10464 | 10464 | * | |
| 10465 | 10465 | * ( end auto-generated ) | |
| 10466 | - * @webref shape:vertex | ||
| 10466 | + * @webref image:textures | ||
| 10467 | 10467 | * @param mode either IMAGE or NORMALIZED | |
| 10468 | 10468 | * @see PGraphics#texture(PImage) | |
| 10469 | 10469 | */ | |
@@ -10473,6 +10473,16 @@ public void textureMode(int mode) { | |||
| 10473 | 10473 | } | |
| 10474 | 10474 | ||
| 10475 | 10475 | ||
| 10476 | + /** | ||
| 10477 | + * ( begin auto-generated from textureWrap.xml ) | ||
| 10478 | + * | ||
| 10479 | + * Description to come... | ||
| 10480 | + * | ||
| 10481 | + * ( end auto-generated from textureWrap.xml ) | ||
| 10482 | + * | ||
| 10483 | + * @webref image:textures | ||
| 10484 | + * @param wrap Either CLAMP (default) or REPEAT | ||
| 10485 | + */ | ||
| 10476 | 10486 | public void textureWrap(int wrap) { | |
| 10477 | 10487 | if (recorder != null) recorder.textureWrap(wrap); | |
| 10478 | 10488 | g.textureWrap(wrap); | |
@@ -10490,7 +10500,7 @@ public void textureWrap(int wrap) { | |||
| 10490 | 10500 | * to specify the color of the texture as it is applied to the shape. | |
| 10491 | 10501 | * | |
| 10492 | 10502 | * ( end auto-generated ) | |
| 10493 | - * @webref shape:vertex | ||
| 10503 | + * @webref image:textures | ||
| 10494 | 10504 | * @param image reference to a PImage object | |
| 10495 | 10505 | * @see PGraphics#textureMode(int) | |
| 10496 | 10506 | * @see PGraphics#beginShape(int) | |
@@ -14090,8 +14100,6 @@ public void background(float v1, float v2, float v3, float alpha) { | |||
| 14090 | 14100 | ||
| 14091 | 14101 | ||
| 14092 | 14102 | /** | |
| 14093 | - * @param image PImage to set as background (must be same size as the sketch window).<br/> | ||
| 14094 | - * <br/> | ||
| 14095 | 14103 | * Takes an RGB or ARGB image and sets it as the background. | |
| 14096 | 14104 | * The width and height of the image must be the same size as the sketch. | |
| 14097 | 14105 | * Use image.resize(width, height) to make short work of such a task.<br/> | |
@@ -14102,6 +14110,8 @@ public void background(float v1, float v2, float v3, float alpha) { | |||
| 14102 | 14110 | * behavior. Use image.filter(OPAQUE) to handle this easily.<br/> | |
| 14103 | 14111 | * <br/> | |
| 14104 | 14112 | * When using 3D, this will also clear the zbuffer (if it exists). | |
| 14113 | + * | ||
| 14114 | + * @param image PImage to set as background (must be same size as the sketch window) | ||
| 14105 | 14115 | */ | |
| 14106 | 14116 | public void background(PImage image) { | |
| 14107 | 14117 | if (recorder != null) recorder.background(image); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -832,6 +832,7 @@ public void requestDraw() { // ignore | |||
| 832 | 832 | * drawing anything. | |
| 833 | 833 | * | |
| 834 | 834 | * @webref pgraphics:method | |
| 835 | + * @brief Sets the default properties for a PGraphics object | ||
| 835 | 836 | */ | |
| 836 | 837 | public void beginDraw() { // ignore | |
| 837 | 838 | } | |
@@ -849,6 +850,7 @@ public void beginDraw() { // ignore | |||
| 849 | 850 | * you're finished drawing. | |
| 850 | 851 | * | |
| 851 | 852 | * @webref pgraphics:method | |
| 853 | + * @brief Finalizes the rendering of a PGraphics object | ||
| 852 | 854 | */ | |
| 853 | 855 | public void endDraw() { // ignore | |
| 854 | 856 | } | |
@@ -1195,15 +1197,24 @@ public void normal(float nx, float ny, float nz) { | |||
| 1195 | 1197 | * NORMAL_SPACE is (0,0) (0,1) (1,1) (0,1). | |
| 1196 | 1198 | * | |
| 1197 | 1199 | * ( end auto-generated ) | |
| 1198 | - * @webref shape:vertex | ||
| 1200 | + * @webref image:textures | ||
| 1199 | 1201 | * @param mode either IMAGE or NORMALIZED | |
| 1200 | 1202 | * @see PGraphics#texture(PImage) | |
| 1201 | 1203 | */ | |
| 1202 | 1204 | public void textureMode(int mode) { | |
| 1203 | 1205 | this.textureMode = mode; | |
| 1204 | 1206 | } | |
| 1205 | 1207 | ||
| 1206 | - | ||
| 1208 | + /** | ||
| 1209 | + * ( begin auto-generated from textureWrap.xml ) | ||
| 1210 | + * | ||
| 1211 | + * Description to come... | ||
| 1212 | + * | ||
| 1213 | + * ( end auto-generated from textureWrap.xml ) | ||
| 1214 | + * | ||
| 1215 | + * @webref image:textures | ||
| 1216 | + * @param wrap Either CLAMP (default) or REPEAT | ||
| 1217 | + */ | ||
| 1207 | 1218 | public void textureWrap(int wrap) { | |
| 1208 | 1219 | showMissingWarning("textureWrap"); | |
| 1209 | 1220 | } | |
@@ -1220,7 +1231,7 @@ public void textureWrap(int wrap) { | |||
| 1220 | 1231 | * to specify the color of the texture as it is applied to the shape. | |
| 1221 | 1232 | * | |
| 1222 | 1233 | * ( end auto-generated ) | |
| 1223 | - * @webref shape:vertex | ||
| 1234 | + * @webref image:textures | ||
| 1224 | 1235 | * @param image reference to a PImage object | |
| 1225 | 1236 | * @see PGraphics#textureMode(int) | |
| 1226 | 1237 | * @see PGraphics#beginShape(int) | |
@@ -6834,8 +6845,6 @@ protected void backgroundFromCalc() { | |||
| 6834 | 6845 | ||
| 6835 | 6846 | ||
| 6836 | 6847 | /** | |
| 6837 | - * @param image PImage to set as background (must be same size as the sketch window).<br/> | ||
| 6838 | - * <br/> | ||
| 6839 | 6848 | * Takes an RGB or ARGB image and sets it as the background. | |
| 6840 | 6849 | * The width and height of the image must be the same size as the sketch. | |
| 6841 | 6850 | * Use image.resize(width, height) to make short work of such a task.<br/> | |
@@ -6846,6 +6855,8 @@ protected void backgroundFromCalc() { | |||
| 6846 | 6855 | * behavior. Use image.filter(OPAQUE) to handle this easily.<br/> | |
| 6847 | 6856 | * <br/> | |
| 6848 | 6857 | * When using 3D, this will also clear the zbuffer (if it exists). | |
| 6858 | + * | ||
| 6859 | + * @param image PImage to set as background (must be same size as the sketch window) | ||
| 6849 | 6860 | */ | |
| 6850 | 6861 | public void background(PImage image) { | |
| 6851 | 6862 | if ((image.width != width) || (image.height != height)) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | PGraphics big; // Declare a PGraphics variable | |
| 2 | 2 | ||
| 3 | 3 | void setup() { | |
| 4 | - big = createGraphics(3000, 3000, JAVA2D); // Create a new PGraphics object | ||
| 4 | + big = createGraphics(3000, 3000); // Create a new PGraphics object | ||
| 5 | 5 | big.beginDraw(); // Start drawing to the PGraphics object | |
| 6 | 6 | big.background(128); // Set the background | |
| 7 | 7 | big.line(20, 1800, 1800, 900); // Draw a line | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -158,6 +158,7 @@ protected void finalize() throws Throwable { | |||
| 158 | 158 | * @webref movie | |
| 159 | 159 | * @usage web_application | |
| 160 | 160 | * @param ifps speed of the movie in frames per second | |
| 161 | + * @brief Sets the target frame rate | ||
| 161 | 162 | */ | |
| 162 | 163 | public void frameRate(float ifps) { | |
| 163 | 164 | if (seeking) return; | |
@@ -221,6 +222,7 @@ public void frameRate(float ifps) { | |||
| 221 | 222 | ||
| 222 | 223 | * @usage web_application | |
| 223 | 224 | * @param irate speed multiplier for movie playback | |
| 225 | + * @brief Sets the relative playback speed | ||
| 224 | 226 | */ | |
| 225 | 227 | public void speed(float irate) { | |
| 226 | 228 | // If the frameRate() method is called continuously with very similar | |
@@ -243,6 +245,7 @@ public void speed(float irate) { | |||
| 243 | 245 | * | |
| 244 | 246 | * @webref movie | |
| 245 | 247 | * @usage web_application | |
| 248 | + * @brief Returns length of movie in seconds | ||
| 246 | 249 | */ | |
| 247 | 250 | public float duration() { | |
| 248 | 251 | float sec = playbin.queryDuration().toSeconds(); | |
@@ -261,6 +264,7 @@ public float duration() { | |||
| 261 | 264 | * | |
| 262 | 265 | * @webref movie | |
| 263 | 266 | * @usage web_application | |
| 267 | + * @brief Returns location of playback head in units of seconds | ||
| 264 | 268 | */ | |
| 265 | 269 | public float time() { | |
| 266 | 270 | float sec = playbin.queryPosition().toSeconds(); | |
@@ -281,6 +285,7 @@ public float time() { | |||
| 281 | 285 | * @webref movie | |
| 282 | 286 | * @usage web_application | |
| 283 | 287 | * @param where position to jump to specified in seconds | |
| 288 | + * @brief Jumps to a specific location | ||
| 284 | 289 | */ | |
| 285 | 290 | public void jump(float where) { | |
| 286 | 291 | if (seeking) return; | |
@@ -322,6 +327,7 @@ public void jump(float where) { | |||
| 322 | 327 | * | |
| 323 | 328 | * @webref movie | |
| 324 | 329 | * @usage web_application | |
| 330 | + * @brief Returns "true" when a new movie frame is available to read. | ||
| 325 | 331 | */ | |
| 326 | 332 | public boolean available() { | |
| 327 | 333 | return available; | |
@@ -337,6 +343,7 @@ public boolean available() { | |||
| 337 | 343 | * | |
| 338 | 344 | * @webref movie | |
| 339 | 345 | * @usage web_application | |
| 346 | + * @brief Plays movie one time and stops at the last frame | ||
| 340 | 347 | */ | |
| 341 | 348 | public void play() { | |
| 342 | 349 | if (seeking) return; | |
@@ -355,12 +362,13 @@ public void play() { | |||
| 355 | 362 | /** | |
| 356 | 363 | * ( begin auto-generated from Movie_loop.xml ) | |
| 357 | 364 | * | |
| 358 | - * Plays a movie continuously, restarting it when it is over. | ||
| 365 | + * Plays a movie continuously, restarting it when it's over. | ||
| 359 | 366 | * | |
| 360 | 367 | * ( end auto-generated ) | |
| 361 | 368 | * | |
| 362 | 369 | * @webref movie | |
| 363 | 370 | * @usage web_application | |
| 371 | + * @brief Plays a movie continuously, restarting it when it's over. | ||
| 364 | 372 | */ | |
| 365 | 373 | public void loop() { | |
| 366 | 374 | if (seeking) return; | |
@@ -380,6 +388,7 @@ public void loop() { | |||
| 380 | 388 | * | |
| 381 | 389 | * @webref movie | |
| 382 | 390 | * @usage web_application | |
| 391 | + * @brief Stops the movie from looping | ||
| 383 | 392 | */ | |
| 384 | 393 | public void noLoop() { | |
| 385 | 394 | if (seeking) return; | |
@@ -402,6 +411,7 @@ public void noLoop() { | |||
| 402 | 411 | * | |
| 403 | 412 | * @webref movie | |
| 404 | 413 | * @usage web_application | |
| 414 | + * @brief Pauses the movie | ||
| 405 | 415 | */ | |
| 406 | 416 | public void pause() { | |
| 407 | 417 | if (seeking) return; | |
@@ -427,6 +437,7 @@ public void pause() { | |||
| 427 | 437 | * | |
| 428 | 438 | * @webref movie | |
| 429 | 439 | * @usage web_application | |
| 440 | + * @brief Stops the movie | ||
| 430 | 441 | */ | |
| 431 | 442 | public void stop() { | |
| 432 | 443 | if (seeking) return; | |
@@ -454,6 +465,7 @@ public void stop() { | |||
| 454 | 465 | * | |
| 455 | 466 | * @webref movie | |
| 456 | 467 | * @usage web_application | |
| 468 | + * @brief Reads the current frame | ||
| 457 | 469 | */ | |
| 458 | 470 | public synchronized void read() { | |
| 459 | 471 | if (frameRate < 0) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments