SOURCES OF PROGRAMS



The basic sources are very simple examples in the folder env/basic.

Sources demos will allow understand most anyflo functions and build applications. A good method is to start with one of the examples (in the folder env) and change gradually.
For an interactive application from one of the files:
modele_menu_simple.func: sufficient for most simple aplications.
modele_multi_menu.func: for more complex applications.
modele_sous_menu.func: For applications divided into sub-applications.
modele_network.func: framework for neural network.


Basics
DEMOS
EXAMPLES
MODELS
TOOLS
TEST FUNCTIONS
VARIOUS FUNCTIONS
APPLICATIONS
CHAINING SEVERAL APPLICATIONS
PROGRAMMING

















































Basics


INTERPRETER basics
ANYFLO basics

INTERPRETER basics

     mathematical functions

ANYFLO basics

     audio
     brush
     collision
     displ line
     network
     particle
     trajectory
     transparency

















































DEMOS


DEMOS INTERPRETER
DEMOS ANYFLO

DEMOS INTERPRETER

FONCIONS DU LANGAGE

A

     abs      acos      arc      ascii      asin      atan      atof      atoi      auto      average

B

     break      bye

C

     calloc      case      CG      clean une string de caractères      cos      cosh

D

     default      demo      dim      directory      dist

E

     else      ent      error      exec      exp      extern

F

     func      for      format

G

     generate      goto      grep

H

     help      history

I

     if      inclu      include      input      int      inv

L

     limit      log

M

     malloc      max      message      min      module

N

     NIL      NL      NP

O

P

     PI      precision      print      product      puls

R

     rand      rand2      rand2f      randf      read      return      ring

S

     scalar      sin      sinh      sort      sum      sqrt      static      string      stringf      switch      system

T

     tan      tanh      time

U

     unit

V

     var      vector

W

     wait      while      write

DEMOS ANYFLO

ANYFLO COMMANDS

A

     abs      acc      add      adhere      adjust      aim      alphabet      ambiance      anc      animate      attach      audio

B

     back      box

C

     camera      CG      clean      close      col      collision      compile      cutxyz

D

     debug      dec      device      device LIR server      device LIR client      device UDP server      device UDP client      dila      dilxyz      displ      dup      dynamic

E

     envelope      exec func      ext      eye

F

     field      fog      foc      font      force      frac

G

     genetic      graphic

H

     hsv

I

     illum      image      interaction      inside      interpol      intersection      inv (inv poi: inverse kinematic)

L

     lattice      law      limit      light      local v     luminance      lut

M

     memory      menu      menu cascade      message      morphing      motif      motionblur      mouse

N

     near           network      network audio      network general      neuron

O

     object

P

     palette      particle      pend      period      pers      pull      put

Q

     quaternion

R

     radius      read      rem      rev      roll      direct and matricial transformations

S

     scale      screen      see      shadow      shared memory server      shared memory client1      shared memory client2      shared memory help      audio shared memory server      audio shared memory client      smooth      speed      sphere      split      spring      static

T

     text      texture      time      traj      transp      tran      triangulate      type

V

     validate      vol      view

W

     win

EXAMPLES

exemple_brush.func: construction of elementary volumes
exemple_1.func: construction of elementary volumes
     exemple_2.func: curve extension, dynamic and real time interaction
     exemple_3.func: curve extensione, dynamic and texture
     exemple_4.func: anchoring a simple body
     exemple_5.func: modifying a simple body
     exemple_6: animated body anchored by angular trajectories and dynamic collisions

MODELS

     corps_simple.func: simple body definition.
     modele.func: simple body.
     modele_menu.func: menu and submenus.
     modele_multi_menu.func: multi menus.
     modele_sous_menu.func: menu and submenus.
     modele_sous_sous_menu.func: menu, submenus and sub submenus
modele_menu_fichier_fra.func: french menus definde in file MEN_fra.
modele_menu_fichier_eng.func: english menus definde in file MEN_eng.
     modele_roue.func: wheel model.
     roue.func: using wheel model.

TOOLS

TEST FUNCTIONS

     test.func
The following functions have not been updated and need to be rewritten..
     test_adjust_rota.func
     test_audio.func
     test_force.func
     test_lead.func
     operators.func
     traiter_image.func

VARIOUS FUNCTIONS

     alpha.func: alpha layer
     attach_view.func: adaptative view
     audio_play.func: audio play
     audio_vol.func: write audio vol
     automappe.func: automappe
     AUTOMATON.func: cellular automaton
     body.func: building a simple body
     body_net.func: neural network on body
     body_test.func: test of body
     bug1.func: debuging a program
     chaos.func: deterministic chaos
     cmp.func: as sort name: enter two files names: prints the first differenr lines.
     collision_vol.func: collision vol
     convert_image.func: image converter
     cutxyz.func: cut
     DIAGRAM.func: diagram editor
     factorielle.func: factorial
     func_.func: func_
     grep.func: search in files
     image_audio.func: image audio
     image_back.func: display a background image
     image_rectify.func: click on 4 points, the image inside the polygon will be mapped on the image (allows rectify the frame of an image)
     image_win.func: image win
     key_wav.func: musical keyboard
     kohonen.func:Kohonen network
     menu_cascade.func: cascading menu
     meta_box.func: meta box
     modele_simple.func: simple function model
     modele_menu_simple.func: simple menu model
     moebius.func: moebius surface
     ok
     paraboloide_hyperbolique.func: hyperbolic paraboloid.
     primitive.func: graphic primitives (pixel,segment,frame,rectangle,disk).
     record.func: recording capteurs.
     replace.func: replace strings.
     sensor.func: sensors.
     speed_image.func: speed image.
     vonkoch.func: vonkoch curves and surfaces

APPLICATIONS

Folder env/applications folder contains applications. Each of these folders xxx contains:
     xxx.js: launching java script of the form:
          WshShell.Run("../../../anyflo.exe uti=./ lan=\"xxx()\" x=0 y=0");
     xxx.func: file whose first function is xxx().
     Possibly anothers *.func.
     initb.h: environment description.
     xxx.htm: instructions.
Ecutable anyflo.exe in folder distribution.
The environment files are in folder distribution/env.

Animation of higher order

The function animation_order.func builds animations of higher order.

Generating an image by sound

The function audio_image.func builds and animates an image by capturing the audio signal.

Coherent flows

Function coherence.func allows to build an adaptative neural network by the coherent flows method.

geneti _emergence

The function genetic_emerge.func builds motionss by genetic algorithms.

mouv_gen: genetic movments

Function mouv_gen.func can build movements from genetic populations.

mouv_neur: neural mouvements

Function mouv_neur.func can build movements from neural networks.

perceptron: neural networks

Function perceptron.func used to build neural networks multilayer perceptron type by reading files formatted matrices.

CHAINING SEVERAL APPLICATIONS

chaining1_1.js launches the function chaining1_1.func
chaining1_2.js launches the function chaining1_2.func
each function launches another when pressing the escape key.

PROGRAMMINGN

anyflo

This folder contains the Visual C + + 6.0 to compile and link anyflo.

prog

This folder contains files relating to applications written in C. Each contains the Visual C + + 6.0 to compile and link.

Shared memory

Folder mem_part contains:

mem_part.htm: instructions.
Source of a double driver of the shared memory (server and client).
serveur.js java script file opening server. client.js java script file opening client.

Webcam driver

Folder WebCam contains:

webcam.c: program..
WebCam.c source of a webcam driver writing in the shared memory name WEBCAM.
WebCam.js java script file launching the server.
The client is anyflo with commands described in the documentation.
Note: if the application is recompiled, do not forget to copy Debug/WebCam.exe in folder WebCam (because WebCam.js launches driver from that folder).

See an example in demo1_camera.func