Skip to content

Instantly share code, notes, and snippets.

View somecho's full-sized avatar

Somē Cho somecho

View GitHub Profile
@somecho
somecho / core.cljs
Created January 24, 2023 10:52
Very basic reagent + reitit front end routing template
(ns app.core
(:require [reagent.core :as r]
[reagent.dom :as rd]
[reitit.frontend :as rf]
[reitit.frontend.easy :as rfe]))
(defn about [] [:div "HELLO ABOUT ME"])
(defn another-view [] [:div "Another view"])
(defn home [] [:div "HOME"])
(def current-view (r/atom #'about))
//CIRCULAR MATRIX TRANSFORMATIONS
//SAMUEL CHO
//2020
// ------------------------------
float numLines = 360.0;
float arcSize = 360.0 / numLines;
float lineStart = -50;
float lineEnd = 50;
float translateHeight = -50;