This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Show/set coordinates in configuration

14

Votes
16
2
Tags: plasma, mandelbrot wallpaper plasma, mandelbrot wallpaper plasma, mandelbrot wallpaper
(comma "," separated)
User avatar
TheBlackCat
Registered Member
Posts
2945
Karma
8
OS
In the Mandelbrot plasma wallpaper, it would be nice if the configuration showed you the coordinates and zoom level of the current view, so you can write down interesting places for future reference as well as share them between users.


Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor.
-NASA in 1965
User avatar
bjacob
Registered Member
Posts
658
Karma
3
I know that would be nice, I wanted to add that as a context menu (right click on wallpaper) as IMHO that would clutter the configuration UI; but plasma doesn't currently allow wallpapers to have their own actions. Perhaps in 4.4...
Meanwhile, you can find (and even change) the coordinates by editing the plasma-desktop-appletsrc config file.

Code: Select all
bjacob@kiwi:~> grep mandelbrot .kde4/share/config/plasma-desktop-appletsrc
wallpaperplugin=mandelbrot
[Containments][1][Wallpaper][mandelbrot]
mandelbrotcenter=-1.25677663435567,-0.379207012956942
mandelbrotcolor1=0,0,0
mandelbrotcolor2=255,255,255
mandelbrotcolor3=0,0,255
mandelbrotlock=2
mandelbrotquality=4
mandelbrotzoom=2.7125284135687e-09


The relevant keys are mandelbrotcenter and mandelbrotzoom. The zoom means the half-width of the view in complex coordinates.


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!
User avatar
bjacob
Registered Member
Posts
658
Karma
3
Hi, I found this blog:
http://yuenhoe.co.cc/blog/2009/10/next- ... l-actions/

looks like plasma now allows wallpapers to add their own actions (that is, right-click menu entries).

So if you want to do it yourself, go ahead, you have my green light and I'll provide you guidance. You still have 2 weeks before the soft 4.4 freeze to add that to the feature plan, and more time before the hard freeze to do that.

Otherwise, I can't do it now (no time) but i might do it for KDE 4.5.

Another useful action would be "export image", export as PNG and perhaps also as JPG.


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!
User avatar
bjacob
Registered Member
Posts
658
Karma
3
Hi, I just implemented this in trunk. Will appear in KDE 4.5. You can export/import the view parameters to/from simple text files, and by the way you can also export PNG images.


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!
User avatar
bjacob
Registered Member
Posts
658
Karma
3
Can some Brainstorm moderator mark this as "done" ? I don't seem to have the access rights.

By the way: Mandelbrot is massively improved in KDE 4.5, faster, better rendering, better user interaction.


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!
User avatar
bjacob
Registered Member
Posts
658
Karma
3
Thanks!

Here are Mandelbrot settings that give pretty good results. Just paste this into a file with extension ".txt" then right click on desktop and do "Import Mandelbrot settings..."

Code: Select all
[Mandelbrot]<br />mandelbrotcenter=-0.148286895189794,-0.652061717470831<br />mandelbrotcolor1=0,0,0<br />mandelbrotcolor2=255,255,255<br />mandelbrotcolor3=70,70,70<br />mandelbrotlock=2<br />mandelbrotquality=4<br />mandelbrotzoom=8.04688623203523e-11<br />


(Unfortunately, Brainstorm doesn't seem to allow attachments to comments)


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]