User Tools

Site Tools


midi_scripting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
midi_scripting [2019/07/08 09:08]
swiftb0y Finished Color API description so the PR can be merged.
midi_scripting [2019/07/08 09:20] (current)
swiftb0y fixed slight formatting issues
Line 449: Line 449:
 The color API features two methods: The color API features two methods:
  
-  * **predefinedColorFromID**(//​id//​) - returns a single color object by the provided ID. +  * **color.predefinedColorFromID**(//​id//​) - returns a single color object by the provided ID. 
-  * **predefinedColorsList**() - returns the whole color palette in the form of a color object array. Since controllers handle colors differently from model to model, it is up to you to interpret the color and send it to the controller.+  * **color.predefinedColorsList**() - returns the whole color palette in the form of a color object array. Since controllers handle colors differently from model to model, it is up to you to interpret the color and send it to the controller.
  
 To prevent some code duplication and to provide a more robust API, a new color object was created. It can be retrieved by using ''​color.predefinedColorFromID(id)''​ and it returns a struct/​hashmap/​dictionary which contain the properties of the colors in the Color palette. It contains the following properties: To prevent some code duplication and to provide a more robust API, a new color object was created. It can be retrieved by using ''​color.predefinedColorFromID(id)''​ and it returns a struct/​hashmap/​dictionary which contain the properties of the colors in the Color palette. It contains the following properties:
Line 460: Line 460:
   * **id** - internal ID of the color.   * **id** - internal ID of the color.
  
-Since these Methods might seem a bit confusing, we provide hotcuebutton class via [Components JS], which is able to take care of the color feature automatically (see [component js hotcue button color]).+Since these Methods might seem a bit confusing, we provide hotcuebutton class via [[components_js|Components JS]], which is able to take care of the color feature automatically (see [[components_js#​hotcuebutton|Components JS Hotcue]]).
 ===== Helper functions ===== ===== Helper functions =====
  
midi_scripting.1562591339.txt.gz · Last modified: 2019/07/08 09:08 by swiftb0y