Skip to content

yoyoberenguer/python-Fire-Effect-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-Fire-Effect-

Old school fire effect with Python/Cython Compatible with pygame version 2.0

alt text

alt text

New version

Install the program using FireEffect.exe

Keys

HUE : up/down
SATURATION: + / -
LUMINESCENCE : Left/right

REQUIREMENT:

pip install pygame cython numpy==1.19.3

- python > 3.0
- numpy version 1.9.13
- pygame 
- Cython
- A compiler such visual studio, MSVC, CGYWIN setup correctly
  on your system.
  - a C compiler for windows (Visual Studio, MinGW etc) install on your system 
  and linked to your windows environment.
  Note that some adjustment might be needed once a compiler is install on your system, 
  refer to external documentation or tutorial in order to setup this process.
  e.g https://devblogs.microsoft.com/python/unable-to-find-vcvarsall-bat/

BUILDING PROJECT:

In a command prompt and under the directory containing the source files
C:\>python setup_project.py build_ext --inplace

If the compilation fail, refers to the requirement section and make sure cython 
and a C-compiler are correctly install on your system. 

DEMO

Edit the file fire_demo.py in your favorite python IDE and run it 
Or run fire_demo.py