summaryrefslogtreecommitdiff
path: root/Userland/Demos/Mandelbrot
AgeCommit message (Collapse)Author
2021-11-08LibGfx: Use ErrorOr<T> for Bitmap::try_create()Andreas Kling
Another one that was used in a fajillion places.
2021-11-08LibGfx: Use ErrorOr<T> for Bitmap::try_load_from_file()Andreas Kling
This was used in a lot of places, so this patch makes liberal use of ErrorOr<T>::release_value_but_fixme_should_propagate_errors().
2021-11-02Demos+DevTools+Games: Fix visibility of Object-derivative constructorsBen Wiederhake
Derivatives of Core::Object should be constructed through ClassName::construct(), to avoid handling ref-counted objects with refcount zero. Fixing the visibility means that misuses like this are more difficult.
2021-10-27Everywhere: Rename left/right-click to primary/secondaryFiliph Sandström
This resolves #10641.
2021-09-04Mandelbrot: Use the new Zoom cursorMustafa Quraish
It makes it really clear now that you can use the mouse to zoom when you see the zoom cursor.
2021-08-14Mandelbrot: Add a View menu with zoom actionsNico Weber
2021-08-14Mandelbrot: Extract reset() methodNico Weber
2021-08-14Mandelbrot: Extract zoom() methodNico Weber
2021-08-10Mandelbrot: Only recalculate missing areas after panningsin-ack
We can reuse the areas that we have from before and just recalculate the areas that are fresh. This makes panning super smooth. :^)
2021-08-10Mandelbrot: Add panningsin-ack
Adds the ability to use the middle-mouse click to pan the current view.
2021-08-10Mandelbrot: Add mousewheel zoomingsin-ack
This allows the user to zoom in with a up scroll of the mousewheel and zoom out with a down scroll.
2021-08-10Mandelbrot: Use a GUI::Frame to paint intosin-ack
This allows us to have a frame border which looks nicer.
2021-07-21Userland: Add GUI::Window::add_menu() and use it everywhereAndreas Kling
Applications previously had to create a GUI::Menubar object, add menus to it, and then call GUI::Window::set_menubar(). This patch introduces GUI::Window::add_menu() which creates the menubar automatically and adds items to it. Application code becomes slightly simpler as a result. :^)
2021-07-21LibGfx: Use "try_" prefix for static factory functionsAndreas Kling
Also mark them as [[nodiscard]].
2021-06-17Everywhere: Add component declarationsGunnar Beutner
This adds component declarations so that users can select to not build certain parts of the OS.
2021-05-18Mandelbrot: Export images in a fixed resolutionGunnar Beutner
This makes the exported image independent from the current window size and just always exports it at 1920x1080.
2021-05-18Mandelbrot: Keep the aspect ratio when (re-)sizing the windowGunnar Beutner
Previously the initial aspect ratio was incorrect and there was nothing to ensure that the aspect ratio is kept when resizing the window.
2021-05-18Mandelbrot: Add support for exporting the current imageGunnar Beutner
Unfortunately this means unveil() won't work - at least until we get something like FilePickerServer.
2021-05-18Mandelbrot: Implement color smoothing with gradientsGunnar Beutner
This removes the color banding that happens for some of the "outer" areas which all have the same iteration count.
2021-05-18Mandelbrot: Maintain aspect ratio when selecting a regionGunnar Beutner
This makes sure the aspect ratio of the widget and the selection match. Otherwise you'd end up with distorted images when zooming in.
2021-05-17Demos: Add Mandelbrot demoGunnar Beutner
This adds a very rudimentary Mandelbrot viewer. It supports zooming and pretty much nothing else. Not even color smoothing or super sampling.