Allegro.cc - Online Community

Allegro.cc Forums » Off-Topic Ordeals » Draw your best circle!

This thread is locked; no one can reply to it. rss feed Print
Draw your best circle!
Mark Oates
Member #1,146
March 2001
avatar

http://vladgotlib.com/circular/

---

I got this high score from just spamming it
{"name":"609913","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/c\/2\/c21df67b4f9abe2cafa36d5282f270ed.png","w":1189,"h":814,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/c\/2\/c21df67b4f9abe2cafa36d5282f270ed"}609913

This was my highest score, could probably get higher
{"name":"609912","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/6\/062c8dd0d69c460801ae786772e18d56.png","w":700,"h":792,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/6\/062c8dd0d69c460801ae786772e18d56"}609912

But I think the real test is probably to shoot for the lowest "Error / point". This was my lowest. In one swipe.
{"name":"609911","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/a\/fac46c6711b314045189c8418ef7d48a.png","w":1041,"h":784,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/a\/fac46c6711b314045189c8418ef7d48a"}609911

bamccaig
Member #7,536
July 2006
avatar

The best I got so far was 593555, with a single swipe only 70 (pixels?) in diameter. I'm no artist so I'd be surprised if I could really challenge one to this. :) I also have a decent mouse with a configurable DPI, which I think helps to keep it under control. I'm sure somebody with artistic talent and one of those graphic/drawing board things could blow this program's mind. :)

SiegeLord
Member #7,827
October 2006
avatar

It seems easy to cheese this...

{"name":"609914","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/e\/2\/e27ca16794c6a9d1aa63e6af263350bc.png","w":242,"h":247,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/e\/2\/e27ca16794c6a9d1aa63e6af263350bc"}609914

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

Elias
Member #358
May 2000

{"name":"609915","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/6\/d\/6d4bbea4c8dbdb10cb8e6fd44ddf3a40.png","w":1808,"h":1032,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/6\/d\/6d4bbea4c8dbdb10cb8e6fd44ddf3a40"}609915

Experience of cheating in various multiplayer games comes in handy... ::)

#SelectExpand
1from math import * 2import os 3 4x = 640 5y = 600 6r = 400 7f = open("/tmp/c", "w") 8print("sleep 3", file = f) 9for i in range(1000): 10 print("sleep 0.01", file = f) 11 print("mousemove", file = f) 12 print("{} {}".format( 13 x + cos(i * pi / 500) * r, 14 y + sin(i * pi / 500) * r), file = f) 15 if i == 0: 16 print("mousedown 1", file = f) 17print("mouseup 1", file = f) 18f.close() 19 20os.system("xdotool /tmp/c")

--
"Either help out or stop whining" - Evert

Erin Maus
Member #7,537
July 2006
avatar

I was working on cheating like Elias, but was beaten to the punch.

Damn you, person with a low-quality-GIF-avatar-I-can-only-assume-is-a-robot-or-zombie-thing!

---
ItsyRealm, a quirky 2D/3D RPG where you fight, skill, and explore in a medieval world with horrors unimaginable.
they / them / their

Johan Halmén
Member #1,550
September 2001

{"name":"609917","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/b\/9\/b90f42d99f01abe57e83bdb00ba342de.png","w":787,"h":639,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/b\/9\/b90f42d99f01abe57e83bdb00ba342de"}609917

Hm... more points, better score? Ok...

{"name":"609918","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/a\/fabd38a6822eedee9969fbbbc986d4fd.png","w":787,"h":639,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/a\/fabd38a6822eedee9969fbbbc986d4fd"}609918

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Years of thorough research have revealed that the red "x" that closes a window, really isn't red, but white on red background.

Years of thorough research have revealed that what people find beautiful about the Mandelbrot set is not the set itself, but all the rest.

Elias
Member #358
May 2000

Damn you, person with a low-quality-GIF-avatar-I-can-only-assume-is-a-robot-or-zombie-thing!

It's a dwarf with armor: http://hol.abime.net/2907

--
"Either help out or stop whining" - Evert

pkrcel
Member #14,001
February 2012

And this sets quite well the age mark! Sad me. >:(

It is unlikely that Google shares your distaste for capitalism. - Derezo
If one had the eternity of time, one would do things later. - Johan Halmén

Mark Oates
Member #1,146
March 2001
avatar

Elias, that's cool. xdotool, got it 8-)

Is that Ruby? Are you using Ruby much for other things as well?

Elias
Member #358
May 2000

That's Python. You could do the same in bash (or perl, or even ruby) - just needed some scripting outside of xdotool to get the circle coordinates :) I basically prefer Python for everything, from simple scripts to large games. Allegro5 comes with a Python wrapper even.

--
"Either help out or stop whining" - Evert

Dennis
Member #1,090
July 2003
avatar

Thought this would be a doodle thread. >:(

Johan Halmén
Member #1,550
September 2001

We need a new doodle thread. Preferably with some twist. We've had a few legendary ones. One with Easy Toons, one with people picturing A4 function names.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Years of thorough research have revealed that the red "x" that closes a window, really isn't red, but white on red background.

Years of thorough research have revealed that what people find beautiful about the Mandelbrot set is not the set itself, but all the rest.

anto80
Member #3,230
February 2003
avatar

This reminds me that TAS video :)
https://www.youtube.com/watch?v=KM41Q_Kc9HU&t=95

___________
Currently working on his action/puzzle game CIPHER PUSHER : Blocks/Vortexes/Seafood! Facebook - Twitter - webpage

Chris Katko
Member #1,881
January 2002
avatar

The question is, can anyone draw seven perpendicular red lines?

-----sig:
“Programs should be written for people to read, and only incidentally for machines to execute.” - Structure and Interpretation of Computer Programs
"Political Correctness is fascism disguised as manners" --George Carlin

Gideon Weems
Member #3,925
October 2003

My first thought was xdotool and bash, but Elias got it first. Now, I'm wondering what the most imperfect circle would be (though technically, there is no such thing as an imperfect circle, as to be not perfect is to be not a circle).

Elias said:

It's a dwarf with armor: http://hol.abime.net/2907

Finally, I can die in peace.

Mark Oates
Member #1,146
March 2001
avatar

Elias said:

It's a dwarf with armor: http://hol.abime.net/2907

Woah. This is how I felt when I watched the first new Star Trek movie: I can die now, my body is ready.

Go to: