Skip to content

Flexible library of graphical algorithms in Python, providing mathematical classes such as vectors and points, speed-optimized graphical functions and much more ! It can be used on the Numworks calculator, or on a computer.

Notifications You must be signed in to change notification settings

Archange-py/Visuel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visuel

Visuel

Welcome ! This project is intended for use in conjunction with Kandinsky on a laptop or Numworks calculator. It allows you to add graphical functions, mainly around new drawing functions like line or circle drawing, but also mathematical classes like vectors or points, and much more !

Table of Contents


  1. General Info
  2. How to use it
  3. Examples
  4. Tree Fractals
  5. More Info
  6. FAQs

General Info


I recommend that you test the sample files on your computer, as you may be able to increase the speed.

To install it on the Numworks, we have the choice :

  1. Just follow this link to the Numworks website

  2. you just need to copy and paste the code from this file: visuel into a new script on your Numworks account. Then upload them to your calculator.

On your laptop, you can use this file. If you have any questions, go to the FAQs section, or explore all the examples here after visiting this page to install kandinsky and ion on your computer !

How to use it


To use it properly you need to install several python packages on your computer whith the command line:

pip install kandinsky
pip install --pre ion-numworks

And python, of course, here if you don't already have it.

You can change the emulator's OS by pressing "CTR+O" to increase speed, so you can get the most out of it without seeing everything slow down !

Examples


First of all, after you're on your computer, you need to start by importing it after installing it in the current directory, and write that on the first line of your project:

from visuel import *

After that, you need to understand how this script is organized, with points and vectors for example, and how it works, with its functions. For this purpose, you have at your disposal one Jupiter Notebook containing everything that can be shown in writing for the file visuel_example. Then there are plenty of example files for everything to do with graphics. You can see the results with the following images :

Example 1 Example 2 Example 3 Example 4

We have to take a number less or equal to 0, and greater or equal to 1 for the alpha parameter

Example 1 Example 2
Example 1 Example 2 Example 3
Example 1 Example 2 Example 3
Example 1
Example 1
Example 1
Example 1
Example 1
Example 1 Example 2
Example 1
Example 1
Example 1
Examples Examples Examples

Just on laptop !

Example 1

Just on laptop too !

Example 1

Tree Fractals

The link to the example script: example_fractal.py


Don't forget to install the lines extension (here) in your calculator !

Basics Tree Palmier
Cyan Tree Cyan Tree Cyan Tree Cyan Tree
Magenta Tree Magenta Tree Magenta Tree
Examples Trees Examples Trees Examples Trees
Angle Tree Angle Tree

More Info


Extensions will soon be available. They including another graphics tool and a tool already present on Numworks.

[Preview] Grapher

FAQs


A list of frequently asked questions (for the moment there is none).

About

Flexible library of graphical algorithms in Python, providing mathematical classes such as vectors and points, speed-optimized graphical functions and much more ! It can be used on the Numworks calculator, or on a computer.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages