Added coloring to show correspondence between currently-selected factor and its visual representation.

**Controls**:

Left/Right : select a different number

Up/Down : increase/decrease selected number

Z/X : make factorization canonical (sort in ascending order, no 1s)

In the original version of this, you could only change the product (and the factors would be calculated from that). In this version, you can change the product, but you can also arrow over to the factors and change them, too, which hopefully helps the user see relationships between numbers.

Here's a little visualization of numbers in terms of their prime factors. The basic idea is stolen from some Flash thingy I saw years ago; I can't remember exactly where...

Up and Down change the number being displayed. Left and right toggle whether the recursive-subdivision process starts with small factors (default) or large factors.

I'm hoping that if someone plays with it for a while they'll understand what it's showing and why.

This is the first cart I'm posting from a set of educational carts I'm making for my preschooler son, who is starting to get interested in pico-8.

[Please log in to post a comment]