This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # include <Siv3D.hpp> // Siv3D v0.6.15 | |
| struct AnimeGlyph : Glyph | |
| { | |
| Array<std::pair<LineString,double>> lines; | |
| static constexpr double lineSpeed = 3; | |
| AnimeGlyph(const Glyph& glyph, const Array<LineString> lineStrings) | |
| : Glyph( glyph ), lines(lineStrings.map([](const LineString& lineString) { return std::make_pair(lineString, lineString.calculateLength()); })) |