← Blog

New Feature: Code Ninja Variables

06 August 2023

Today, I am thrilled to share with you an exciting new feature that has been added to Code Ninja - Code Ninja Variables! This latest addition empowers you to take your drawings to the next level by allowing you to use variables in your Code Ninja creations.

Using variables in your drawings opens up a whole new world of possibilities. You can now assign values to variables and manipulate them using math commands. This means you can make your more drawings dynamic by incorporating calculations into your code!

An example Code Ninja script showing variables and loopcount property in action.

An example Code Ninja script showing variables and loopcount property in action.

But that’s not all! Another handy addition is the ability to access the loopCount from repeat commands. With this feature, you can see how many times a particular section of code loops, and use that value as a variable to make even more interesting images.

To help you get started with these awesome new features, I have also added some fresh code examples showcasing how they can be used effectively. These examples will provide you with inspiration and guidance as you explore the creative potential of Code Ninja Variables.

Code Ninja Flower Sample
Code Ninja Spiral Sample
Code Ninja Arcs Sample
Code Ninja Rainbow Corridor Sample

And there’s one more thing - I heard your requests, and I’m happy to announce that I have also included an arc command in this update! Drawing curves has never been easier. Whether it’s creating smooth lines or intricate arcs, this new command will give your drawings a whole new level of sophistication.

For detailed information on how to unleash the power of Code Ninja Variables and make the most out of this exciting update, be sure to check out our comprehensive documentation available on our website.

So what are you waiting for? Dive into Code Ninja today and start exploring all the incredible things you can achieve with Code Ninja Variables. Unleash your creativity like never before!

Need a new look?

Support Brush Ninja - Buy a TShirt.

Related Posts

Mar10 Day

09 March 2023

March the 10th is Super Mario Day, so I thought this year I’d celebrate it by making a Mario portrait with Code Ninja, and a Mario animation with Brush Ninja. I’ve been obsessed with Nintendo since my childhood, it was once my goal to work for them. That’s not looking...

Shape Palette

13 May 2020

In Brush Ninja Classic (the current version), you can draw rectangles, circles, triangles and stars. Brush Ninja v2 allows so much more. This feature actually came about by accident. I had added the basic shape drawing functionality to Brush Ninja v2, and then wanted to add a heart shape. Which...

Sound Effects and Audio

08 December 2022

One of the things I like doing is collecting feedback from users. Since Brush Ninja has been around I have added a bunch of new features based entirely upon things that users have suggested. Custom Images Background Images Custom Colours Different Brushes And more… There has always been a lot...

‹ Back to Blog

Icon for Brush Ninja Brush Ninja Make Animated Gifs
Icon for Paint Ninja Paint Ninja Draw and Paint Online
Icon for Code Ninja Code Ninja Make Art with Code
Icon for Emoji Art Emoji Art Make Emoji Art
Icon for Photo Collage Photo Collage Make Photo Collages
Icon for Comic Maker Comic Maker Make Comics