The interactive snippets of this article are powered by Klipse.
In order to have an Oblivion interactive snippet, all you need is to wrap the content in a DOM element and specify its selector in the klipse_settings.selector_oblivion
.
Let’s have an Oblivion
interactive snippet:
f = #red |= (1,1) *> (1,100) *> (100,100) draw f g = #green |= (1,1) *> (100,1) *> (100,100) draw g
And another one:
getnum = {return 1 !! 70}
print(getnum())
randline = {
draw #cyan |= (getnum(), getnum()) -> (getnum(), getnum())
}
repeat(10, randline)