Demo entry 6742813

Ayy!

   

Submitted by anonymous on May 19, 2018 at 09:09
Language: C#. Code size: 594 Bytes.

ovar Float hours[h].AbleToApply(yes)
ovar Float minutes[m].AbleToApply(yes)
ovar Float seconds[s].AbleToApply(yes)

new Start (hours, minutes, seconds) { h.Range(0,23); m.Range(0,60); s.Range(0,60) }

public Loop UpdateText (hours, minutes, seconds)
{

	s.Count++

	In (s.Count.Max)
	{

		m.Count++

		s.Count.Reset(s)	

	}

	In (m.Count.Max)
	{

		h.Count++

		m.Count.Reset(m)

	}

	In (h.Count.Max)
	{

		h.Count.Reset(h)

	}

	h.Apply(h)
	m.Apply(m)
	s.Apply(s)

}

public TTD Print (hours, minutes)
{

	this.print(h + " : " + m).SmoothText

}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).