From 8f1452fa82b202c6beffde02e97d6d232660c2f0 Mon Sep 17 00:00:00 2001 From: pandrr Date: Tue, 30 Jan 2024 10:53:25 +0100 Subject: [PATCH] file case --- .../dev_attachments/dev_attachments.md | 4 ++-- ...tput_attachment.PNG => output_attachment.png} | Bin md/5_writing_ops/dev_callbacks/dev_callbacks.md | 8 ++++---- ...le.png => dev_callbacks_error_ui_example.png} | Bin md/5_writing_ops/dev_hello_op/dev_hello_op.md | 4 ++-- .../dev_hello_op/img/c-final_picture.PNG | Bin 6647 -> 0 bytes .../img/{resize_POT.png => resize_pot.png} | Bin .../img/{resized_POT.png => resized_pot.png} | Bin md/faq/webgl_differences/webgl_differences.md | 4 ++-- 9 files changed, 10 insertions(+), 10 deletions(-) rename md/5_writing_ops/dev_attachments/img/{output_attachment.PNG => output_attachment.png} (100%) rename md/5_writing_ops/dev_callbacks/img/{dev_callbacks_error_UI_example.png => dev_callbacks_error_ui_example.png} (100%) delete mode 100644 md/5_writing_ops/dev_hello_op/img/c-final_picture.PNG rename md/faq/webgl_differences/img/{resize_POT.png => resize_pot.png} (100%) rename md/faq/webgl_differences/img/{resized_POT.png => resized_pot.png} (100%) diff --git a/md/5_writing_ops/dev_attachments/dev_attachments.md b/md/5_writing_ops/dev_attachments/dev_attachments.md index 2a970fe..7db47e6 100644 --- a/md/5_writing_ops/dev_attachments/dev_attachments.md +++ b/md/5_writing_ops/dev_attachments/dev_attachments.md @@ -1,6 +1,6 @@ # Creating Attachments -Attachments are files that can be created and read as a string in the op they are attached to. +Attachments are files that can be created and read as a string in the op they are attached to. An attachment file can be created by clicking on an op and then clicking the create button @@ -40,4 +40,4 @@ The attachment can now be accessed inside of your op, select the op and press 'e -![output_attachment_img](img/output_attachment.PNG) +![output_attachment_img](img/output_attachment.png) diff --git a/md/5_writing_ops/dev_attachments/img/output_attachment.PNG b/md/5_writing_ops/dev_attachments/img/output_attachment.png similarity index 100% rename from md/5_writing_ops/dev_attachments/img/output_attachment.PNG rename to md/5_writing_ops/dev_attachments/img/output_attachment.png diff --git a/md/5_writing_ops/dev_callbacks/dev_callbacks.md b/md/5_writing_ops/dev_callbacks/dev_callbacks.md index a561885..c6cab65 100644 --- a/md/5_writing_ops/dev_callbacks/dev_callbacks.md +++ b/md/5_writing_ops/dev_callbacks/dev_callbacks.md @@ -68,7 +68,7 @@ When you inspect existing ops by pressing the `View Code` button in the op param op init is done asynchronously and most of the time it's better to just initalize outside of callbacks and handle port-value-changes in the corresponding `onChange`; -Please be aware that this function will be called twice on patch load. If you need to initialize a variable global to the op, +Please be aware that this function will be called twice on patch load. If you need to initialize a variable global to the op, you might be better off doing that outside of any callback. If you do this in `init`, create a variable, set them null and check for that. ```javascript @@ -82,8 +82,8 @@ op.init = function() ### onLoaded -Gets called when the whole patch is loaded / all ops are linked / all external libraries loaded etc. -You normally won't need this, as op-specific init-code can just be put in your op-code without a callback. +Gets called when the whole patch is loaded / all ops are linked / all external libraries loaded etc. +You normally won't need this, as op-specific init-code can just be put in your op-code without a callback. `op.onLoaded` is **not** called when the op has just been added to the patch, only when the patch is loaded. ```javascript @@ -117,7 +117,7 @@ The number in the last part of the function defines what kind of error is shown 1 - warning / orange color 2 - error / red color / this will also place a red dot on the right hand side of the op
-![Button](img/dev_callbacks_error_UI_example.png) +![Button](img/dev_callbacks_error_ui_example.png)
example code to show an error: ```javascript diff --git a/md/5_writing_ops/dev_callbacks/img/dev_callbacks_error_UI_example.png b/md/5_writing_ops/dev_callbacks/img/dev_callbacks_error_ui_example.png similarity index 100% rename from md/5_writing_ops/dev_callbacks/img/dev_callbacks_error_UI_example.png rename to md/5_writing_ops/dev_callbacks/img/dev_callbacks_error_ui_example.png diff --git a/md/5_writing_ops/dev_hello_op/dev_hello_op.md b/md/5_writing_ops/dev_hello_op/dev_hello_op.md index 4b20952..c7db47b 100644 --- a/md/5_writing_ops/dev_hello_op/dev_hello_op.md +++ b/md/5_writing_ops/dev_hello_op/dev_hello_op.md @@ -30,7 +30,7 @@ In this example we will just forward the input value to an out-port. So let’s const myOutPort = op.outNumber("Output"); ``` -In the top of the editor window click on `Save` the new code will then be executed, now reload the patch (the browser window) by pressing `cmd + r`. +In the top of the editor window click on `Save` the new code will then be executed, now reload the patch (the browser window) by pressing `cmd + r`. Now click on `Op` —> `Add` (or use the `Esc`-Shortcut) on the very top of the window, enter the name of the op you just created – `HelloOp` and press Enter. You now see your newly created op with one input- and one output-port: @@ -100,7 +100,7 @@ const multiplyValueIn = op.inFloat("Multiply amount"); This creates a second port and a new part on the object pane which allows us to set the multiplication amount. Your op should now look like this -![](img/b-port_in_multiply_amount.PNG) +![](img/b-port_in_multiply_amount.png) Your code should look like this diff --git a/md/5_writing_ops/dev_hello_op/img/c-final_picture.PNG b/md/5_writing_ops/dev_hello_op/img/c-final_picture.PNG deleted file mode 100644 index e46a95422066ae2c96c53906e7b55d1256e2f6a9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6647 zcmc&(cT`i^x%Km-z#2v!fE3DkO z5`rKFhrPCkA!rc_g5=h&SOzGAM^kOUj~wZ+y)~3qzo`d2Eb+E-w1S{#$*X2gE(Oo> z=l9}C5Ty7D{*$Zqf8+&08?HLoTKyh;yiZVvVKqL7e%0)C4B%?-&35ohjWYdB2hRxzMCEQ<`G$WrrEsturlqbwHvAbP3j((W_s-l(DV6F&3cYlsmfuKX%tK}i+(OS_G z2>N{`aS;Uld<7#1K{u`G5EQXb0|!Bt57q!h?;idyZ>Q}X8yzifUQF8mEN?kv*@Qs3 zU&k1aa}ujM6?W<8FOW2WK(Ps!9%Ue^rCYVblB1yqyroZ6^NNa!QgghQK$gcBh<)8g zXaj@a_w)1@L0fi-wl31O_|pa`bwUfL`IpGk1lHR~wDnRHTKLOVpmOCNy6p+yM#nSe zS`aj>2{svZ>o7AB5EOzyA&wyfY50Z}P(*1gZAFd(i}QmQZ<)aB2M(+UX&>=froS%SoI&X4kcbHR8CbUHf=tPLBe-%$lsofbK_H`iF zLwju!b*drNMtzo>+g3W_DtV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nq{fDgSEEf+-QG|8T(J+nDAH{Wn}ogY{Pam1z#$ZG&B^eDMB;Eg9#6MJGpGAm}p^ zb__5lJG%xJ4ubAm!9G#YSHrvle-Hp}`Tz2rK;^&k(c(&Lhjg8v<6W|#U_}l1SOYoO L;cWA)Ph9#J@uwZo diff --git a/md/faq/webgl_differences/img/resize_POT.png b/md/faq/webgl_differences/img/resize_pot.png similarity index 100% rename from md/faq/webgl_differences/img/resize_POT.png rename to md/faq/webgl_differences/img/resize_pot.png diff --git a/md/faq/webgl_differences/img/resized_POT.png b/md/faq/webgl_differences/img/resized_pot.png similarity index 100% rename from md/faq/webgl_differences/img/resized_POT.png rename to md/faq/webgl_differences/img/resized_pot.png diff --git a/md/faq/webgl_differences/webgl_differences.md b/md/faq/webgl_differences/webgl_differences.md index 104ec78..b8d1670 100644 --- a/md/faq/webgl_differences/webgl_differences.md +++ b/md/faq/webgl_differences/webgl_differences.md @@ -45,13 +45,13 @@ Fortunately, cables allows you to resize a texture to the closest power of two w If you open the file browser and click on the texture you desire to resize, the following options will appear: -![resize_start](img/resize_POT.png) +![resize_start](img/resize_pot.png) If you look at the bottom of the screenshot, you can see marked in yellow the current size of your image. At the bottom right of your dimensions, there are a few buttons that allow you to process your image through cables. The relevant button to resize to the next power of two is marked in bright green. After clicking it, a dialogue appears and asks you if you want to resize the texture. If you do that, the following dialogue will appear: -![resize_start](img/resized_POT.png) +![resize_start](img/resized_pot.png) Your texture is now resized to the next power of two and usable for mipmapping in WebGL1.