https://github.com/johncoene/acurve
📦 Curve component for aframer
https://github.com/johncoene/acurve
a-frame rstats
Last synced: about 1 year ago
JSON representation
📦 Curve component for aframer
- Host: GitHub
- URL: https://github.com/johncoene/acurve
- Owner: JohnCoene
- License: other
- Created: 2018-08-28T20:55:48.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-29T07:05:34.000Z (almost 8 years ago)
- Last Synced: 2025-01-26T14:48:38.463Z (over 1 year ago)
- Topics: a-frame, rstats
- Language: R
- Homepage: https://acurve.john-coene.com
- Size: 303 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# acurve
Curve component for [aframer](https://aframer.john-coene.com)
## Installation
``` r
devtools::install_github("JohnCoene/acurve")
```
## Example
This is a basic example which shows you how to solve a common problem:
``` r
library(aframer)
library(acurve)
browse_aframe(
a_scene(
a_dependency(),
acurve_dependency(),
a_curve(
id = "track",
a_curve_point(position = xyz_aframe(-2, 1, -3)),
a_curve_point(position = xyz_aframe(0, 0, -3)),
a_curve_point(position = xyz_aframe(2, 1, -5))
),
a_draw_curve(
curveref = "#track",
material = opts_aframe(
shader = "line",
color = "blue"
)
)
)
)
```