Find an IFS

For each of the following self-similar images, find an IFS that generates that image:

Comments

  • For the spiral image, I started with the spiral example, then modified the rotation value, t, to 45 and the scale, r0, to .9. This produced the following code:

    r0 = 0.90;
    r1 = 0.08;
    t = 45*degree;
    [
    rotate(t).compose(scale(r0)),
    scale(r1,[1,0])
    ]
    

  • edited October 2017
    [
      scale(1/3),
       shift([1/3,0])
        .compose(scale(1/3))
        .compose(rotate(pi/3))    .compose(reflect([0,1])),
      shift([1/2,sqrt(3)/6]).
        compose(scale(1/3)).
        compose(rotate(-pi/3))
        .compose(reflect([0,1])),
      scale(1/3,[1,0])
    ]
    

  • r0 = 0.92;
    r1 = 0.14;
    t = 130.5*degree;
    [
      rotate(t).compose(scale(r0)),
      scale(r1,[1,0])
    ]
    
Sign In or Register to comment.