Link to my landing page: https://kaancinar.me/kaan.js/examples.html
Directlink to my documentation: https://kaancinar.me/kaan.js/documentation.html
Getting Started:
To use this library, all you need is jQuery, and this library itself, no
other external js or css file is required. Here are some code snippets
showing some basic library functionality:
-
Creating an Environment (check API for more
details on constructor parameters):
<script> const env1 = new Enviroment("env1", 300, 600, "White", 0, 200) env1.createEnviroment() </script>
-
Creating a Matter (check API for more details on
constructor parameters), the code below will create a solid,
optionally, createLiquid(), and createGas() could be called to create
a liquid or a gas respectively:
<script> const env1_solid1 = new Matter(env1, 200, 40, 200.1, 100, 'Orange', 100, false, true, "sand1") env1_solid1.createSolid() </script>
-
Creating a EnviromentController:
<script> new EnviromentController(env4).create() </script>