Skip to content

a JavaScript plug-in for generating Origamic Architecture.

Notifications You must be signed in to change notification settings

yoshiakist/origamic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

origamic.js

A JavaScript plug-in for generating Origamic Architecture.
origamic.js は折り紙建築を生成して動かすためのJavaScriptプラグインです。

Origamic Architecture made by Yoshiakist

Usage

<div class="origamic_container" id="container1"></div>
<div class="origamic_controller">
    <div class="origamic_controll_bar" id="bar1">
        <div class="origamic_controll_tab" id="tab1"></div>
    </div>
</div>
    
<script src="./js/origamic.js"></script>
<script>
    origamic1 = new Origamic({
        selector: '#container1',
        controlTab: '#tab1',
        controlBar: '#bar1',
        perspective: 1000,
        initialAngle: 45,
        unitWidth: 40,
        unitHeight: 40,
        blocks: [
            [10, 10],
            [10, 10],
            [6, 1, 4, 9],
            [6, 2, 4, 8],
            [6, 3, 4, 7],
            [6, 4, 4, 6],
            [10, 10],
            [10, 10]
        ],
        centerLine: 10,
        wholeShadow: true
    });
</script>

Documentation

準備中...

License

MIT

Author

yoshiakist

About

a JavaScript plug-in for generating Origamic Architecture.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published