craft-tube

1.0.2 • Public • Published

craft-tube

Tube primitive for CraftML

Usage

<craft>
    <craft name="tube" module="craft-tube"/>
    <tube></tube>
</craft>

Parameters

  • baseRadius: adjusts base radius of tube
  • topRadius: adjusts top radius of tube
  • height: adjusts height of tube
  • thickness: adjusts thickness of tube sides
  • sides: adjusts number of tube sides

Example

<craft>
    <craft name="tube" module="craft-tube"/>
    <row spacing="1">
        <tube baseRadius="15" topRadius="10" height="20"></tube>
        <tube baseRadius="10" topRadius="15" height="30" sides="4"></tube>
        <tube></tube>
    </row>
</craft>

example

Readme

Keywords

Package Sidebar

Install

npm i craft-tube

Weekly Downloads

3

Version

1.0.2

License

MIT

Last publish

Collaborators

  • calebhsu