metapict
metapict copied to clipboard
A graphics library for producing Racket picts in a MetaPost/TikZ style.
I happened to notice that the `.github` folder gets installed with the package. This is kind of a minor bug, but doesn't seem like it should get installed. ``` >...
``` raco setup: 2 running: /metapict/metapict/scribblings/metapict.scrbl raco setup: WARNING: undefined tag in /metapict/metapict/scribblings/metapict.scrbl: raco setup: ((lib "metapict/main.rkt") --) raco setup: ((lib "metapict/main.rkt") -pi/2) raco setup: ((lib "metapict/main.rkt") ..) raco setup:...
The function `bez-arc-length` doesn't handle the case where +inf.0 are used as coordinates. #(struct:bez #(struct:pt 203.2 0.0) #(struct:pt +inf.0 +inf.0) #(struct:pt -inf.0 -inf.0) #(struct:pt 203.15 0.0))
I was wondering if there was a way to create objects from existing SVG images, or any existing converter that would allow me to create new functions from SVG files?...
currently `pt` and `vec` are documented twice, once in representation.scrbl and once in pt.scrbl. I'd suggest that either all data types are documented in one place (representations.scrbl) or each with...
The transformations represented by the `trans` structure currently accepts `pt`, `vec` and `curve` as inputs. Allow `point` to be used as input as well.
![image](https://user-images.githubusercontent.com/461765/86618334-04497780-bfb9-11ea-9236-ad1a50393193.png) ![image](https://user-images.githubusercontent.com/461765/86618501-512d4e00-bfb9-11ea-82af-4e685675133d.png)
Check whether MetaPost calculates the same curve. (curve (pt u 0) up .. (pt (- u) 0) down -- cycle)
> (intersection-point unitcircle (curve origo -- (pt\* 100 (pt 1 1)))) > (pt 0.7071067811865506 0.7071067811865446) > (intersection-point unitcircle (curve origo -- (pt\* 100 (pt 1 1)))) > (pt 0.7071067811865506 0.7071067811865446)...