Rizline:Chart file: Difference between revisions

No edit summary
No edit summary
Line 110: Line 110:
<li><code>13</code> - unknown</li>
<li><code>13</code> - unknown</li>
</ul>
</ul>
=== Note type enum ===
<ul>
<li><code>0</code> - Tap note</li>
<li><code>1</code> - Drag note</li>
<li><code>2</code> - Hold note</li>
</ul>
=== Color key point object structure ===
Color key points change the color of the entire line (or judge ring) over time, as opposed to line point colors, which change the color of the line in a gradient fashion, locally. Color key points always interpolate linearly. The current color can be calculated with the following formula:
<pre>
// prev = key point that's the closest to `currentTime`, but not after it
// next = next key point, one that's right after `prev`
t = (currentTime - prev.time) / (next.time - prev.time)
color = ((1.0 - t) * prev.startColor) + (t * prev.endColor))
</pre>
{{DataStructure|
  {{DataStructureField|startColor|color object|Starting color. See [[#Color object structure]] for details.}}
  {{DataStructureField|endColor|color object|Ending color. See [[#Color object structure]] for details.}}
  {{DataStructureField|time|float|Time of the start of the key point (in beats).}}
}}