Skip to content

Commit c9fd5bd

Browse files
committed
Split palette range into its own section and other UX improvements
1 parent 49287b9 commit c9fd5bd

File tree

4 files changed

+219
-122
lines changed

4 files changed

+219
-122
lines changed

client/blog/how-mandelbrot-site-was-built.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The viewer is equipped with a range of interactive features:
2626
- **Dynamic Zoom:** Users can zoom into any region of the set using mouse scroll or by selecting a specific area, facilitating deep exploration.
2727
- **Iteration Adjustment:** This feature allows users to adjust the number of iterations used in the calculations, affecting the detail and rendering time of the fractal.
2828
- **Multibrot Sets:** Beyond the traditional Mandelbrot set, users can explore multibrot sets by adjusting the exponent in the generating formula.
29-
- **Customizable Color Schemes:** Users can personalize their visual experience by choosing different color schemes.
29+
- **Customizable Color Palettes:** Users can personalize their visual experience by choosing different color palettes.
3030
- **Viewport Coordinates:** Display and update the coordinates of the current viewport on the complex plane.
3131
- **Image Export:** High-resolution images of the fractal can be saved as PNG files.
3232
- **Shareable Views:** Users can generate URLs that encapsulate their current view, allowing them to share their fractal explorations with others.

client/html/index.html

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ <h1 class="nav-heading">
118118
</div>
119119
</div>
120120
</details>
121-
<details open>
121+
<details open id="renderSettings">
122122
<summary class="mobile-hidden">
123123
<span>Render settings</span>
124124
<button
@@ -158,14 +158,14 @@ <h1 class="nav-heading">
158158
</div>
159159
</div>
160160
</details>
161-
<details class="mobile-hidden">
161+
<details class="mobile-hidden" id="colorPalette">
162162
<summary>
163-
<label for="colorScheme">Color scheme</label>
163+
<label for="colorScheme">Color palette</label>
164164
<button
165165
type="button"
166166
class="reset-button"
167167
id="resetColorScheme"
168-
title="Reset color scheme"
168+
title="Reset color palette"
169169
>
170170
171171
</button>
@@ -230,11 +230,23 @@ <h1 class="nav-heading">
230230
<input type="checkbox" id="smoothColoring" name="smoothColoring" />
231231
<label for="smoothColoring">Smooth coloring</label>
232232
</div>
233+
</div>
234+
</details>
235+
<details class="mobile-hidden" id="paletteRange">
236+
<summary>
237+
<span>Palette range</span>
238+
<button
239+
type="button"
240+
class="reset-button"
241+
id="resetPaletteRange"
242+
title="Reset palette range"
243+
>
244+
245+
</button>
246+
</summary>
247+
<div class="details-content">
233248
<div class="input-wrapper">
234-
<label for="paletteMinIter" class="label-with-subtitle">
235-
<span>Min iterations</span>
236-
<span class="secondary">Color palette start</span>
237-
</label>
249+
<label for="paletteMinIter">Min iterations</label>
238250
<input
239251
type="number"
240252
id="paletteMinIter"
@@ -243,10 +255,7 @@ <h1 class="nav-heading">
243255
/>
244256
</div>
245257
<div class="input-wrapper">
246-
<label for="paletteMaxIter" class="label-with-subtitle">
247-
<span>Max iterations</span>
248-
<span class="secondary">Color palette end</span>
249-
</label>
258+
<label for="paletteMaxIter">Max iterations</label>
250259
<input
251260
type="number"
252261
id="paletteMaxIter"
@@ -265,7 +274,7 @@ <h1 class="nav-heading">
265274
</div>
266275
</div>
267276
</details>
268-
<details class="mobile-hidden">
277+
<details class="mobile-hidden" id="adjustColors">
269278
<summary>
270279
<span>Adjust colors</span>
271280
<button
@@ -327,7 +336,7 @@ <h1 class="nav-heading">
327336
</div>
328337
</div>
329338
</details>
330-
<details class="mobile-hidden">
339+
<details class="mobile-hidden" id="coordinates">
331340
<summary>
332341
<span>Coordinates</span>
333342
<button

0 commit comments

Comments
 (0)