Mark Elendt

mark

About Me

Expertise
Developer
Location
Canada
Website

Connect

Recent Forum Posts

padzero in vex? May 2, 2018, 7:40 a.m.

This might be a little easier
string
padzero(int n; int v)
{
    return sprintf("%*0d", n, v);
}

cvex
main()
{
    printf("%s\n", padzero(5, 126));
    printf("%s\n", padzero(5, 23));
    printf("%s\n", padzero(1, 23));
}

Technical Math question - involving arcs! July 25, 2017, 6:54 a.m.

Also, that first bit… you could use
float p = fit(@ptnum, 0, @numpt-1, 1, 0);

Blurring non moving objects July 22, 2017, 3:46 p.m.

You could also add a velocity attribute and render it with motion blur. Just set the velocity attribute to the direction you'd like to blur it.