Module Import alias Import alias ImportFrom alias Expr Str Assign NameStore Call NameLoad Call NameLoad Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore NameLoad Assign NameStore ListComp TupleLoad Call AttributeLoad NameLoad attr BinOpDiv BinOpMult BinOpMult NameLoad Num AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr BinOpDiv BinOpMult BinOpMult BinOpAdd NameLoad Num Num AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr BinOpDiv BinOpMult BinOpMult BinOpAdd NameLoad Num Num AttributeLoad NameLoad attr Num comprehension NameStore Call NameLoad Num FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameStore TupleLoad Call NameLoad BinOpSub NameLoad NameLoad Call NameLoad BinOpSub NameLoad NameLoad Call NameLoad BinOpSub NameLoad NameLoad Assign NameStore BinOpSub BinOpAdd BinOpSub Num BinOpMult Num BinOpPow NameLoad Num BinOpMult Num BinOpPow NameLoad Num BinOpMult Num BinOpPow NameLoad Num Assign NameStore BinOpSub BinOpAdd BinOpSub Num BinOpMult Num BinOpPow NameLoad Num BinOpMult Num BinOpPow NameLoad Num BinOpMult Num BinOpPow NameLoad Num Assign NameStore BinOpSub BinOpAdd BinOpSub Num BinOpMult Num BinOpPow NameLoad Num BinOpMult Num BinOpPow NameLoad Num BinOpMult Num BinOpPow NameLoad Num Assign NameStore SubscriptLoad NameLoad Index BinOpAdd SubscriptLoad NameLoad Index BinOpAdd SubscriptLoad NameLoad Index BinOpMod Call NameLoad NameLoad NameLoad BinOpMod Call NameLoad NameLoad NameLoad BinOpMod Call NameLoad NameLoad NameLoad Assign NameStore BinOpAdd BinOpAdd BinOpMult BinOpSub NameLoad NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num BinOpMult BinOpSub NameLoad NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num BinOpMult BinOpSub NameLoad NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Return BinOpMult BinOpMult BinOpMult NameLoad NameLoad NameLoad NameLoad decorator_list Assign TupleStore NameStore NameStore NameStore TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Return BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Call NameLoad BinOpAdd NameLoad Num BinOpAdd NameLoad Num BinOpAdd NameLoad Num Call NameLoad BinOpAdd NameLoad Num BinOpAdd NameLoad Num BinOpAdd NameLoad Num Call NameLoad BinOpAdd NameLoad Num BinOpAdd NameLoad Num BinOpAdd NameLoad Num Call NameLoad BinOpAdd NameLoad Num BinOpAdd NameLoad Num BinOpAdd NameLoad Num Call NameLoad BinOpAdd NameLoad Num BinOpAdd NameLoad Num BinOpAdd NameLoad Num Call NameLoad BinOpAdd NameLoad Num BinOpAdd NameLoad Num BinOpAdd NameLoad Num Call NameLoad BinOpAdd NameLoad Num BinOpAdd NameLoad Num BinOpAdd NameLoad Num Call NameLoad BinOpAdd NameLoad Num BinOpAdd NameLoad Num BinOpAdd NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Num For NameStore Call NameLoad NameLoad body AugAssignAdd NameStore BinOpMult BinOpPow Num NameLoad Call NameLoad BinOpMult NameLoad BinOpPow Num NameLoad BinOpMult NameLoad BinOpPow Num NameLoad BinOpMult NameLoad BinOpPow Num NameLoad BinOpMult NameLoad BinOpPow Num NameLoad Return NameLoad decorator_list Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore BinOpDiv Num Num Assign NameStore Num For NameStore Call NameLoad NameLoad body Assign NameStore ListLoad Print NameLoad For NameStore Call NameLoad NameLoad body For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMult NameLoad NameLoad BinOpMult NameLoad NameLoad BinOpMult NameLoad NameLoad Call NameLoad BinOpMult NameLoad NameLoad NameLoad Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body For NameStore Call NameLoad NameLoad body Assign NameStore BinOpAdd Num BinOpMult BinOpSub SubscriptLoad NameLoad Index BinOpAdd BinOpMult BinOpMod BinOpAdd NameLoad Num NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index BinOpAdd BinOpMult NameLoad NameLoad NameLoad Num Assign NameStore BinOpAdd Num BinOpMult BinOpSub SubscriptLoad NameLoad Index BinOpAdd BinOpMult NameLoad NameLoad BinOpMod BinOpAdd NameLoad Num NameLoad SubscriptLoad NameLoad Index BinOpAdd BinOpMult NameLoad NameLoad NameLoad Num Assign NameStore BinOpDiv Num Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Num BinOpPow NameLoad Num BinOpPow NameLoad Num Expr Call AttributeLoad NameLoad attr TupleLoad Call NameLoad BinOpMult Num NameLoad Call NameLoad BinOpMult Num NameLoad Call NameLoad BinOpMult Num NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Str Print Str
N/A N/A random N/A math PIL Image N/A  Produce a series of Perlin noise images that tile with each other
and wrap at the end of the sequence. The pixel value are interpreted as
heights and colour values then calculated to represent a normal map.
 N/A perm N/A list N/A range 256 N/A N/A N/A random seed 1 N/A N/A N/A random shuffle perm N/A perm perm N/A dirs N/A N/A N/A N/A math cos N/A N/A N/A a 2.0 N/A math pi 256 N/A N/A math cos N/A N/A N/A N/A a 85 2.0 N/A math pi 256 N/A N/A math cos N/A N/A N/A N/A a 170 2.0 N/A math pi 256 N/A a N/A range 256 noise N/A N/A x y z per N/A N/A surflet N/A N/A gridX gridY gridZ N/A N/A N/A N/A distX distY distZ N/A N/A abs N/A x gridX N/A abs N/A y gridY N/A abs N/A z gridZ N/A polyX N/A N/A N/A 1 N/A 6 N/A distX 5 N/A 15 N/A distX 4 N/A 10 N/A distX 3 N/A polyY N/A N/A N/A 1 N/A 6 N/A distY 5 N/A 15 N/A distY 4 N/A 10 N/A distY 3 N/A polyZ N/A N/A N/A 1 N/A 6 N/A distZ 5 N/A 15 N/A distZ 4 N/A 10 N/A distZ 3 N/A hashed N/A perm N/A N/A N/A perm N/A N/A N/A perm N/A N/A N/A int gridX per N/A N/A int gridY per N/A N/A int gridZ per N/A grad N/A N/A N/A N/A x gridX N/A N/A dirs N/A hashed N/A 0 N/A N/A y gridY N/A N/A dirs N/A hashed N/A 1 N/A N/A z gridZ N/A N/A dirs N/A hashed N/A 2 N/A N/A N/A N/A polyX polyY polyZ grad N/A N/A N/A intX intY intZ N/A N/A int x N/A int y N/A int z N/A N/A N/A N/A N/A N/A N/A N/A N/A surflet N/A intX 0 N/A intY 0 N/A intZ 0 N/A surflet N/A intX 0 N/A intY 0 N/A intZ 1 N/A surflet N/A intX 0 N/A intY 1 N/A intZ 0 N/A surflet N/A intX 0 N/A intY 1 N/A intZ 1 N/A surflet N/A intX 1 N/A intY 0 N/A intZ 0 N/A surflet N/A intX 1 N/A intY 0 N/A intZ 1 N/A surflet N/A intX 1 N/A intY 1 N/A intZ 0 N/A surflet N/A intX 1 N/A intY 1 N/A intZ 1 N/A fBm N/A N/A x y z per octs N/A N/A N/A val 0 N/A o N/A range octs N/A N/A val N/A N/A 0.5 o N/A noise N/A x N/A 2 o N/A y N/A 2 o N/A z N/A 2 o N/A per N/A 2 o N/A val N/A N/A  variables used by the noise file generator:
num -- images in sequence
size -- size to resize each image to
freq -- frequency of noise
octs -- octaves of noise
 N/A num 128 N/A size 32 N/A freq N/A 1 8.0 N/A octs 5 N/A z N/A range num N/A N/A data N/A N/A z N/A y N/A range num N/A N/A x N/A range num N/A N/A N/A N/A data append N/A fBm N/A x freq N/A y freq N/A z freq N/A int N/A num freq octs N/A im_data N/A N/A y N/A range num N/A N/A x N/A range num N/A N/A rVal N/A 0.5 N/A N/A N/A data N/A N/A N/A N/A N/A y 1 num num x N/A data N/A N/A N/A y num x 0.5 N/A gVal N/A 0.5 N/A N/A N/A data N/A N/A N/A y num N/A N/A x 1 num N/A data N/A N/A N/A y num x 0.5 N/A bVal N/A 1.0 N/A N/A math sqrt N/A N/A 1.0 N/A rVal 2 N/A gVal 2 N/A N/A N/A im_data append N/A N/A int N/A 255 rVal N/A int N/A 255 gVal N/A int N/A 255 bVal 255 N/A im N/A N/A Image new RGBA N/A num num N/A N/A N/A im putdata im_data 1.0 0.0 N/A im N/A N/A im resize N/A size size N/A N/A N/A im save N/A N/A n_norm N/A format z 03d .png N/A finished doing it