Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 678 Bytes

File metadata and controls

20 lines (12 loc) · 678 Bytes

Usefull functions

this file was created to hold some usefull functions for the game 'Graphwar'. Feel free to contribute or open an issue to add a function.

a * abs(x - b)

example: 0.5 * abs(x - 4)
image

a * abs(x - b) - a * abs(x - c)

example: 0.5 * abs(x - 4) - 0.5 * abs(x - 7)
image

a/(1+(x-b)^2)

example: 3/(1+(x-2)^2)
image