Method and device for changing colors, storage medium and processor

The embodiment of the invention provides a method and device for changing colors, a processor and a storage medium. The method comprises the following steps: controlling cycle times to increase one by one; and assigning the preset colors to the preset elements one by one every time the number of cyc...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: HAN BAOXIN, LIU YANAN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The embodiment of the invention provides a method and device for changing colors, a processor and a storage medium. The method comprises the following steps: controlling cycle times to increase one by one; and assigning the preset colors to the preset elements one by one every time the number of cycles is increased by one. Therefore, the color of the preset element is circularly converted, and the colored trotting horse lamp effect is achieved. 本申请实施例提供一种用于变换颜色的方法和装置、处理器及存储介质。方法包括:控制循环次数逐一增加;以及所述循环次数每增加一次,将预设颜色逐一赋给预设元素。藉此,实现了循环变换预设元素的颜色,实现了颜色走马灯效果。