Added signal diagram

master
Abhinav Sarkar 2013-09-25 16:37:14 +05:30
parent 00c46a5ee7
commit 6d78cdad2f
1 changed files with 23 additions and 0 deletions

View File

@ -6,6 +6,29 @@
[domina.events :as ev])
(:require-macros [cljs.core.async.macros :as m :refer [go]]
[frpong.core :refer (go-loop)]))
;;
;; Signal Diagram
;;
;; +---------------------+
;; | +-------------+ |
;; | | | |
;; v v | |
;; +----------+ vel-chan | |
;; +-->|c-detector+----------+ |
;; | +----------+ | |
;; | +-----------------+ |
;; | | +-----------------+
;; | | | |
;; | v v |
;; +---------+ frame-chan +------+ tick-chan | +----------+ pos-chan |
;; |frame-gen+------------>|ticker+-----------+-->|positioner+--------------+
;; +---------+ +------+ +----------+ |
;; +---------------------+
;; |
;; v
;; +----------+
;; | renderer |
;; +----------+
(defn positioner [tick-chan vel-chan pos-chan-in pos-chan-out]
(go-loop