-1

Just wondering how to display a mandelbrot set vertically, like a mandelbrot set as this is positioned horizontally:

'brot

I was thinking more like viewing the smaller dimensions from the vertical axis.

genpfault
  • 51,148
  • 11
  • 85
  • 139
john smith2
  • 45
  • 1
  • 7
  • 3
    You mean, just rotate it 90 degrees? – lvella May 31 '12 at 16:09
  • 1
    Please clarify your question *greatly*. How are you getting the image now? Are you generating it? Downloading it? Where are you stuck exactly? – Hovercraft Full Of Eels May 31 '12 at 16:12
  • Perhaps utilize the `TiltHeadSideways` API. Other possible options are co-ordinate transformation as suggested by Tomasz Nurkiewicz or an `AffineTransform` for a custom painted component or new image. Please narrow down the use-case. – Andrew Thompson May 31 '12 at 16:17

2 Answers2

3

Use exactly the same equations as you would use to display horizontal Mandelbrot set but switch y with x and x with -y.

Tomasz Nurkiewicz
  • 334,321
  • 69
  • 703
  • 674
-1

Pseudocode:

if width > height:
    transpose_coordinates(pixels)

or like Ivella said

if width > height:
    rotate(img, 90)
JAB
  • 20,783
  • 6
  • 71
  • 80