An open API service indexing awesome lists of open source software.

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

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"
)
)
)
)
```