Python Demonstrations
Below are some Tychos demonstration scenarios using the Python language.
Last updated
Below are some Tychos demonstration scenarios using the Python language.
The following have been designed to illustrate how to use Tychos to create various simulations, and demonstrates how certain Tychos specific objects and functions can be utilized.
The following examples show many of the attributes that you can modify for each object, but it is not an exhaustive demonstration. Please refer to the API for more details on ALL of the attrbiutes that can be accessed and modified.
These attributes require a bit more to understand and apply, and are not available to all objects, so we felt they deserved their own catagory:
Transform -skew, flip, blur
Blend Modes - blend_mode
Mouse events can be handled with your own custom event handling functions for any of the Scenario Objects other than gradient objects.
These are various UI widgets that can be added to your scenarios. Some widgets can be used to display information, while others can be used for data input.
Every scenario can access user input from the keyboard and the mouse.
You can add audio output to your scenarios through the audio object functions.
Data visualization tools can be used to plot points on a graph, create tables of data, or display information in a pie or bar chart.
plot() - (matplotlib widget display)
These scenarios demonstrate how you can animate the attributes of the scenario objects in order to create simulations, games or interactive digital art!
Some examples of prgramming and mathematical algorithms:
This gives you an example of defining a goal for a scenario.
Some examples of using Tychos to model simulations using computational physics:
Tychos has a number of built in functions for detecting and helping you resolve collisions.
Have some fun!
Last updated