#
Basic page
This is a basic page, with only a title and some text content.
using System;
using System.Collections;
using UnityEngine;
using UnityEngine.Rendering;
using Vellum;
[ExecuteInEditMode]
using System;
using System.Collections;
using UnityEngine;
using UnityEngine.Rendering;
using Vellum;
[ExecuteInEditMode]
public class CircleVellumQuad : VellumQuad
{
float elapsedTime = 0.0f;
protected override void Draw()
{
elapsedTime += Time.deltaTime;
float f = (elapsedTime % 2.0f) - 1.0f;
var picture = makePicture();
picture.clear(Color.clear);
var paint = new Paint();
paint.color = Color.cyan;
paint.style = Paint.Style.Stroke;
paint.isAntiAliased = true;
paint.strokeWidth = 3 + Math.Abs(f) * 10;
var width = 200;
var height = 200;
picture.drawRoundedRect(
new Rect(128 - width / 2, 128 - height / 2, width, height),
10 + (float)Math.Pow(Math.Abs(f), 3.0f) * 40,
paint
);
picture.submit(this);
}
}