Last active
August 29, 2015 14:11
-
-
Save capitancook/aa5951a431064d029cd6 to your computer and use it in GitHub Desktop.
demons and stored procedures for the kbcad example - http://highorderdysfunctions.blogspot.com/2014/12/frame-language-knowledge-based-computer_9.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns clj-fl-examples.demons | |
(:require [clj-fl.core :refer :all] | |
[clj-fl-examples.renderlib :refer :all])) | |
(defn render2dbu [f] | |
(let [ims (fget f :cof :value) | |
namestr (fget f :name :value)] | |
(drawcolorstring | |
(list 0 0 255) namestr (fget f :sps :value)) | |
(dorun (map #((resolve (fget-ii % :render2d :proc)) %) ims)))) | |
(defn render2dsu [f] | |
(let [ims (fget f :cof :value) | |
namestr (fget f :name :value)] | |
(drawcolorstring | |
(list 0 0 255) namestr (fget f :sps :value)) | |
(dorun (map #((resolve (fget-ii % :render2d :proc)) %) ims)))) | |
(defn render2dbe [f] | |
(drawcolorline (fget-i f :color :value) | |
(fget-i f :width :value) | |
(fget f :sps :value))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment