差分

ナビゲーションに移動 検索に移動

MonoGameでSkiaSharpを使う

35 バイト追加, 2017年11月16日 (木) 15:18
</source>
試しに円を描いてみる。試しに虹色グラデーションな円を描いてみる。
<source lang="csharp">
using System;
// 虹色グラデーションシェーダー
var shader = SKShader.CreateSweepGradient(
new SKPoint(50w/2, 50h/2),
new[] {
new SKColor(0x00,0x00,0xff),
{
Shader = shader,
StrokeWidth = 1050,
IsStroke = true,
};
// 円を描く
canvas.DrawCircle(50w/2, 50h/2, 25w/4, paint);
// 描画コマンド実行
匿名利用者

案内メニュー