Skip to content

Blog

25-07-08 - Today I Learned...

Today I learned about acceleration and how to use the device acceleration in p5.js

Acceleration is the rate at which velocity changes over time.

Acceleration = Change in velocity / time taken

Speeding up -> positive acceleration Slowing down -> negative acceleration

for current acceleration you can use accelerationX,accelerationY,accelerationZ

for previours frames acceleration you can use pAccelerationX,pAccelerationY,pAccelerationZ

To limit the length of the float value use accelerationX.toFixed(2).

25-07-08 - Today I Learned...

Today I learned how to reference the current framerate with project.cookRate or me.time.rate in TouchDesigner.

25-06-25 - Today I Learned...

Today I learned again how to set the right path for your python version.

  1. Find the Python installation path.

  2. Add the Path to Windows:

  3. Win+R and sysdm.cpl to open the system window.
  4. Go to Advanced Tab and Environment Variables
  5. Under System Variables find Path -> Edit
  6. New and add the path to your Python
  7. Also add the path to the Scripts folder in the python folder.

  8. Restart terminal

25-06-25 - Today I Learned...

I learned the hard way that you should run your python and AI projects in a virtual environment so they don't create problems with other dependencies. python -m venv env with env as the name for the environment.

To run the environment you write env\Scripts\activate.bat or env\Scripts\activate.

With deactivate we simply can deactivate the virtual environment.

The packages and dependencies that we used in the environment we then can save in a requirements.txt file so if somebody else uses the project they can download themselves without us sending the dependencies. pip freeze > requirements.txt

25 - 04 - 16 - 004

25 - 04 - 16 - 003

25- 04 - 16 - 002

25 -04 -15 - 001

25-04-14 - 002

25-04-14 - 001

GLSL Sketches 25

25-05-07 - 034

25-04-22 - 033

25-04-22 - 032

25-04-22 - 031

25-04-22 - 030

25-04-22 - 029

See the Pen GLSL- 25-04-22 - 029 by levoxtrip (@levoxtrip) on CodePen.

25-04-22 - 028

25-04-17 - 027

25-04-16 - 026

25-04-15 - 025

25-04-15 - 024

25-04-12 - 023

25-04-09 - 022

25-04-07 - 021

25-04-03 - 020

25-04-02 - 019

25-04-02 - 018

25-03-27 - 017

25-03-25 - 016

25-03-25 - 015

25-03-24 - 014

25-03-21 - 013

25-03-19 - 012

25-03-06 - 011

25-03-06 - 010

25-03-05 - 009

25-02-25 - 008

25-02-24 - 007

25-02-25 - 006

25-02-19 - 005

25-02-19 - 004

25-02-19 - 003

25-02-15 - 002

25-02-14 - 001

25-02-13 - 000