Category Archives: Uncategorized

improved class Vector – the code

// a class for two-dimensional vectors, similarly as PVector, with extensions for complex numbers //————————————————————- // //  some important values float vectorSmall=0.0001; float vectorDiameter=8; color vectorColor=color(255);      //  and here’s the class class Vector{   float x,y;     // … Continue reading

Posted in programming, Uncategorized | Tagged , , | Leave a comment

improving the class Vector

I am not happy with my class Vector. Looking at my posts “Nautilus” and “self-similar fractals …” I realize that complex numbers and vectors should be put together with their methods, which are mostly mappings of the plane. In particular, … Continue reading

Posted in programming, Uncategorized | Tagged , , | Leave a comment

class Points – the code

class Points{   Point[] points;     Points(){     points=new Point[0];   }     Point find(int i){                                    // return point with given index     return points[i];   }     Point find(Vector v){                                 // return Point with given vector … Continue reading

Posted in programming, Uncategorized | Tagged , , | Leave a comment

Coloring the Julia set

The Julia set of a function f(z) in the complex plane has all points z that remain finite upon iterations of the function. In the last posts I have used expanding functions to get fractal images from iteration, as discussed … Continue reading

Posted in Fractals, Self-similarity, Uncategorized | Tagged , , , , , | Leave a comment

From pixels to coordinates – with code

This is similar to “setting up the coordinates” but goes in opposite direction. We now know the coordinates (i,j) of a pixel on the screen and we need to know the corresponding coordinates (x,y) in the complex plane. We want … Continue reading

Posted in Uncategorized | Leave a comment

Saving images

I am using processing that you can download from processing.org. It is free but your donation is welcome. Processing is built on Java. With processing you can easily create interesting images with small programs. Once you have an image you … Continue reading

Posted in programming, Uncategorized | Tagged , , | Leave a comment