This file contains 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
// http://jikasei.me/font/jf-dotfont/ | |
FontAsset::Register(U"", 10, U"JF-Dot-MPlus10.ttf", FontStyle::Bitmap); | |
// https://datagoblin.itch.io/monogram | |
FontAsset::Register(U"", 16, U"monogram.ttf", FontStyle::Bitmap); | |
// https://rwi.booth.pm/items/4442315 | |
FontAsset::Register(U"", 12, U"5x5 ノスタルジア .ttf", FontStyle::Bitmap); | |
// misaki_gothic.ttf |
This file contains 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> // OpenSiv3D v0.6.6 | |
namespace s3d | |
{ | |
namespace Periodic | |
{ | |
/// @brief 矩形波に従って、周期的に [0.0, 1.0] の値を返します。 | |
/// @param periodSec 周期(秒) | |
/// @param dutyCycle デューティー比、周期内で波形の大きさが 1.0 である時間の割合 | |
/// @param t 経過時間(秒) |
This file contains 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> // OpenSiv3D v0.6.6 | |
namespace s3d | |
{ | |
namespace Periodic | |
{ | |
/// @brief 矩形波に従って、周期的に [0.0, 1.0] の値を返します。 | |
/// @param periodSec 周期(秒) | |
/// @param dutyCycle デューティー比、周期内で波形の大きさが 1.0 である時間の割合 | |
/// @param t 経過時間(秒) |
This file contains 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 <SDKDDKVer.h> | |
#define WIN32_LEAN_AND_MEAN | |
#include <windows.h> | |
#include <stdlib.h> | |
#include <malloc.h> | |
#include <memory.h> | |
#include <tchar.h> | |
// メインウィンドウのクラス名 | |
LPCWSTR g_mainWindowClassName = L"WindowsHookExample"; |
This file contains 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> // OpenSiv3D v0.6.0 | |
void Main() | |
{ | |
Scene::SetBackground(ColorF{ 0, 0, 0 }); | |
Font font{ 16 }; | |
SimpleAnimation anim; | |
anim.setLoop(5s) |
This file contains 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> // OpenSiv3D v0.6.0 | |
String commaSeparatedInputNames(const Array<Input>& inputs) | |
{ | |
return inputs.map([](const auto& x) { return x.name(); }) | |
.join(U", ", U"", U""); | |
} | |
void Main() | |
{ |
This file contains 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
/* 設定からインポートして使う. */ | |
@-moz-document url-prefix("https://finance.yahoo.co.jp/cm/message/") { | |
#msthdtp, | |
#main-inner > div > div, | |
#pos-lrec | |
{ | |
display: none !important; | |
} | |
} |
This file contains 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
// Sol3 - https://github.com/ThePhD/sol2 | |
#define _SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING | |
#include <sol/sol.hpp> | |
// Magic Enum - https://github.com/Neargye/magic_enum | |
#include <magic_enum/magic_enum.hpp> | |
enum class E | |
{ | |
A = 10, |
This file contains 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> | |
struct Twinkle : IEffect | |
{ | |
Vec2 pos; | |
double angle; | |
double scale; | |
Twinkle(const Vec2 pos) : pos(pos), angle(RandomSelect({ 0_deg, 45_deg })), scale(Random(0.2, 1.0)) | |
{ |
This file contains 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
// * config.iniの設定に従いスプライトフォント画像を生成する | |
// * 画像出力後、画像を表示する | |
// * Zキー、Xキーでズームイン・ズームアウト | |
// | |
// * "config.ini"の各項目の説明: | |
// | |
// fontname = 美咲ゴシック フォント名 | |
// fontsize = 4 フォントサイズ | |
// texture_width = 512 出力画像のサイズ | |
// texture_height = 512 〃 |