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.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. S[122-125] <= x:20, rx:15;
  14. # Pixel Positioning
  15. P19 <= x:21, rx:16;
  16. P[20] <= x:20, rx:15;
  17. P[21] <= x:20, y:10, z:2, rx:15, ry:12, rz:39;
  18. P[22-25] <= x:20, rx:15;
  19. # Pixel Channel Mapping
  20. P[5](4:8, 5:8, 12:8) : None;
  21. P[4](3:8) : S0x31;
  22. P[12](40:8, 50:8, 120:8) : S59;
  23. P[12](12:8, 13:8, 14:8) : S[40];
  24. # Animation
  25. A[BLEEdsing] <= loop:3,frame:2;
  26. A[BLEEdsing2] <= loop,div:2;
  27. # Animation Frames
  28. A[BLEEdsing, 0] <= P[4](+32);
  29. A[BLEEdsing, 1] <= P[4](42);
  30. A[BLEEdsing, 2] <= P[4](-12);
  31. A[BLEEdsing, 3] <= P[4](-:32);
  32. A[BLEEdsing, 4] <= P[4](+:400);
  33. A[BLEEdsing, 5] <= P[4](<<2);
  34. A[BLEEdsing, 6] <= P[4](>>1);
  35. A[BLEEdsing, 7-9] <= P[4](+32);
  36. A[BLEEdsing, 10, 12] <= P[4](+32);
  37. A[BLEEdsing, 11, 13-15] <= P[4-10](+32);
  38. A[BLEEdsing2, 0] <= PL[0](127, 30, 40), P[5](20, 30, 40);
  39. A[BLEEdsing2, 1] <= P[1-20,40](40,50,0x60);
  40. # Animation Triggers
  41. myCapability => myFunc( myArg1 : 1, myArg2 : 4 );
  42. A[BLEEdsing, 3] : myCapability( 0x8, 0x25 );
  43. A[BLEEdsing, 4-6] : myCapability( 0x8, 0x25 );
  44. A[BLEEdsing, 7, 9] : myCapability( 0x8, 0x25 );
  45. A[BLEEdsing2] : myCapability( 0x8, 0x25 );
  46. # Animation Results
  47. S[0x37, 0x38] : A"BLEEdsing";
  48. S0x39 : A"BLEEdsing", A"BLEEdsing2";
  49. S0x40 : A[BLEEdsing];
  50. S0x41 : A[BLEEdsing](loop:2);
  51. S0x42 : A[BLEEdsing](loop:2,div:3);
  52. S0x43 : PL[0](0xFF,0xFF,244) + P[1-3](20,40,60);
  53. S0x44 : PL[0-2](0xFF,0xFF,244);
  54. S0x44 : PL1(0xFF,0xFF,244);
  55. S0x45 : PL[2](0x1F,0x2F,0x3F);
  56. S0x46 : P[0](11,23,45);
  57. S0x47 : P1(11,23,45);