Message Boards Message Boards

8
|
16735 Views
|
10 Replies
|
12 Total Likes
View groups...
Share
Share this post:

Wolfram Tweet-a-Program Launches Today

Posted 10 years ago
POSTED BY: Emily Suess
10 Replies

Give it a try: Fractal Fun: Tweet-a-Program Mandelbrot Code Challenge

ImageAdd[Rasterize@Rotate[MandelbrotSetPlot[{-1.9+I,-.85I},ColorFunction->(If[#3>.9,Black,White]&)],3Pi/2],=[Mandelbrot Pic]]

enter image description here

Source

Bernat

POSTED BY: Bernat Espigulé

Slightly shorter version that should fit in a tweet:

b = c = ConstantArray[0, {256, 256, 3}]; s = 21 ;; 236; 
b[[All, s]] = c[[s, All]] = Tuples[{0, .5, .05, 0, .5, .05}, 3]; Image[b + c]
POSTED BY: Ilian Gachevski

Illian, Thank you. It runs as: @wolframtap b = c = ConstantArray[0, {256, 256, 3}]; s = 21;;236; b[[All, s]] = c[[s, All]] = Tuples[{0, .5, .5, 0, .5, .5}, 3];Image[b + c]

I had to cut into my variables!

POSTED BY: Douglas Youvan
POSTED BY: Douglas Youvan

Also, I'm getting some double results.

POSTED BY: Jesse Friedman

Yep, a known bug. Working on it, though we might not get to fully sorted out until tomorrow...

POSTED BY: Andre Kuzniarek

Does it use the same protection against malicious input as standard Cloud APIs?

POSTED BY: Jesse Friedman

Yes, we have sandboxing that is part and parcel of Wolfram Cloud. We also filter some obvious useless inputs, and return error messages for failed code, but people are coming up with other examples of things that just aren't too useful that we will work on filtering. And we are monitoring for troll silliness.

POSTED BY: Andre Kuzniarek

I really like this image which Arnoud B. generously allowed me to steal from his Tweet-a-Code testing collection:

Graphics[{EdgeForm[],Table[{Hue[RandomReal[]],Opacity[0.1],ConicHullRegion[{RandomReal[1,2]},RandomReal[{-1,1},{2,2}]]},{75}]}]

enter image description here

http://t.co/6GieKbLaYD

POSTED BY: Andre Kuzniarek

Shades of Kandinsky. Well, lines too.

POSTED BY: Daniel Lichtblau
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract