Tuesday, January 2, 2018

Functions in ECMAScript



Functions have a central role in JavaScript (ECMAScript 2015+),this is important to know how to use them...


Friday, October 27, 2017

Loops



Repeating tasks in a script is the most important part when programming. This process is done using a specific statement: the loop. In JavaScript, you can use while, for (..), for (.. in ..), for (.. of ..).

Wednesday, October 25, 2017

Conditionals



Using conditionals in a script is a way to execute different parts of a code depending of the result of a condition. What is a condition, the operators (comparison and logical)?

Tuesday, October 24, 2017

Read/Write Pixels in a RGB image



Thanks to the methods of the class ImageProcessor [see Post], it is possible to read and write pixels in an image.


Read and Write Pixels in Grayscale Images



Thanks to the methods of the class ImageProcessor [see Post], it is possible to read and write pixels in an image.


Monday, October 23, 2017

Template Strings in ES6



With the new version of JavaScript (ECMAScript 2015+), new String functionalities — very convenient for ImageJ scripts — are available. Take a tour about these new features.


Friday, October 20, 2017

Variables in ECMAScript



With the new version of JavaScript (ECMAScript 2015+), the variables are now defined by three distinct keywords: var, let, and const. Why? That's what we'll see in this post.