KLL Compiler
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

leds.kll 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Name = leds;
  2. Author = "HaaTa (Jacob Alexander) 2016";
  3. KLL = 0.5;
  4. mydefine = "stuffs here";
  5. mydefine2 = '"stuffs here"'; # For outputting c define strings
  6. mynumber = 414;
  7. # Array variables
  8. myarray[] = elem0 elem1 "elem 2";
  9. myarray[4] = test;
  10. # Key Positioning
  11. S120 <= x:20, rx:15;
  12. S121 <= x:20, y:10, z:2, rx:15, ry:12, rz:39;
  13. # Pixel Positioning
  14. P[20] <= x:20, rx:15;
  15. P[21] <= x:20, y:10, z:2, rx:15, ry:12, rz:39;
  16. # Pixel Channel Mapping
  17. P[5](4:8, 5:8, 12:8) : None;
  18. P[4](3:8) : S0x31;
  19. P[12](40:8, 50:8, 120:8) : S59;
  20. # Animation
  21. A[BLEEdsing] <= loop:3,frame:2;
  22. A[BLEEdsing2] <= loop,div:2;
  23. # Animation Frames
  24. A[BLEEdsing, 0] <= P[4](+32);
  25. A[BLEEdsing, 1] <= P[4](42);
  26. A[BLEEdsing, 2] <= P[4](-12);
  27. A[BLEEdsing, 3] <= P[4](-:32);
  28. A[BLEEdsing, 4] <= P[4](+:400);
  29. A[BLEEdsing, 5] <= P[4](<<2);
  30. A[BLEEdsing, 6] <= P[4](>>1);
  31. A[BLEEdsing2, 0] <= PL[0](127, 30, 40), P[5](20, 30, 40);
  32. A[BLEEdsing2, 1] <= P[1-20,40](40,50,0x60);
  33. # Animation Triggers
  34. myCapability => myFunc( myArg1 : 1, myArg2 : 4 );
  35. A[BLEEdsing, 3] : myCapability( 0x8, 0x25 );
  36. A[BLEEdsing2] : myCapability( 0x8, 0x25 );
  37. # Animation Results
  38. U0x40 : A[BLEEdsing];
  39. S0x41 : A[BLEEdsing](loop:2);
  40. S0x43 : PL[0](0xFF,0xFF,244), P[1-3](20,40,60);