chore: Prepare package for publication (#8)
Construct a proper package.json in the dist file and copy the README there for a reasonably complete shipped package. Reviewed-on: #8 Co-authored-by: Glen Whitney <glen@studioinfinity.org> Co-committed-by: Glen Whitney <glen@studioinfinity.org>
This commit is contained in:
parent
66b24e657b
commit
8a0ece1dde
7 changed files with 68 additions and 555 deletions
|
@ -6,7 +6,23 @@
|
|||
<script>
|
||||
(async () => {
|
||||
const vrml1to97 = await import('../dist/vrml1to97/index.js')
|
||||
console.log(vrml1to97.convert('if (moo) cows // hurray'))
|
||||
console.log(vrml1to97.convert( `
|
||||
#VRML V1.0 ascii
|
||||
|
||||
# Example 2 - using the Separator and Material Nodes
|
||||
|
||||
# Here comes the Sun
|
||||
# The Separator node groups everything within it together
|
||||
Separator {
|
||||
# The material will affect all subsequent nodes
|
||||
# The Sun becomes yellow
|
||||
Material {
|
||||
diffuseColor 1 1 0 # R G B
|
||||
}
|
||||
Sphere {
|
||||
radius 10 # the Sun is very big
|
||||
}
|
||||
}`))
|
||||
})()
|
||||
</script>
|
||||
</head>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue