Skip to content

Commit

Permalink
add svg-export to differential-harmonics
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed May 20, 2024
1 parent d1d2565 commit 55617be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/shimmers/sketches/differential_harmonics.cljs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
(ns shimmers.sketches.differential-harmonics
(:require
[clojure.math :as math]
[reagent-keybindings.keyboard :as kb]
[shimmers.common.svg :as csvg :include-macros true]
[shimmers.common.svg-export :as svg-export]
[shimmers.common.ui.controls :as ctrl]
[shimmers.common.ui.debug :as debug]
[shimmers.math.deterministic-random :as dr]
Expand Down Expand Up @@ -59,7 +61,8 @@
(gl/line2 p q))))))

(defn scene [params]
(csvg/svg-timed {:width width
(csvg/svg-timed {:id "scene"
:width width
:height height
:stroke "black"
:fill "none"
Expand All @@ -84,6 +87,7 @@
[sketch/with-explanation
[:div.canvas-frame [scene params]]
[:div.flexcols
[kb/kb-action "alt-s" #(svg-export/download "scene" "differential-harmonics")]
[view-sketch/generate :differential-harmonics]
[:p "Similar to helix but instead perturb oscillation frequency forward and backward from base harmonic."]]
[:div.readable-width
Expand Down

0 comments on commit 55617be

Please sign in to comment.