User Tools

Site Tools


macros:example:createmixedcolourpalette

Differences

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

Link to this comparison view

Next revision
Previous revision
macros:example:createmixedcolourpalette [2019/03/10 10:27] – created icke_siegenmacros:example:createmixedcolourpalette [2021/06/10 19:06] (current) – external edit 127.0.0.1
Line 1: Line 1:
 Example Example
  
-====== Create a mixed colour palette ======+====== Create a mixed colour palette (Snippet) ======
  
 ^ by: | Alex del Bondio, January 2019 | ^ by: | Alex del Bondio, January 2019 |
Line 9: Line 9:
  
 {{tag>create colour palette}} {{tag>create colour palette}}
 +
 +**From Titan v15 on ClearAll() requires two parameters, see [[macros:function:programmer.editor.clearall|]].\\ Simply change the relevant line(s) to ''Programmer.Editor.ClearAll(false, false)''.**
  
 ==== functions ==== ==== functions ====
Line 47: Line 49:
   * ''Palette.StoreCurrentPaletteReplace'' stores/replaces the target palette   * ''Palette.StoreCurrentPaletteReplace'' stores/replaces the target palette
   * a final ''Programmer.Editor.ClearAll'' clears the editor again   * a final ''Programmer.Editor.ClearAll'' clears the editor again
 +
 +**Note that the target palette needs to be recorded as normal palette in the first place else this would store only the last colour information as shared or global.**
  
 ===== How to use it ===== ===== How to use it =====
macros/example/createmixedcolourpalette.1552213664.txt.gz · Last modified: 2019/03/10 10:27 by icke_siegen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki