søren peter mørch

movq (www.uninformativ.de)

I should probably clarify: Which language/platform? Something graphical or web-based right from the beginning or do you start with a console program?

In reply to: #xtsryia 20 hours ago
movq (www.uninformativ.de)

If you just do a square, the score is still surprisingly high … https://movq.de/v/68eb406e17/s.png 😅

In reply to: #wwjyb7a 22 hours ago
movq (www.uninformativ.de)

@prologic This was like 20 minutes, but yeah 🤣

In reply to: #wwjyb7a 1 day ago
movq (www.uninformativ.de)

Can you automate the drawing with a script? On X11, you can:

#!/bin/sh

# Position the pointer at the center of the dot, then run this script.

sleep 1

start=$(xdotool getmouselocation --shell)
eval $start

r=400
steps=100
down=0

for step in $(seq $((steps + 1)) )
do
    # pi = 4 * atan(1)
    new_x=$(printf '%s + %s * c(%s / %s * 2 * (4 * a(1)))\n' $X $r $step $steps | bc -l)
    new_y=$(printf '%s + %s * s(%s / %s * 2 * (4 * a(1)))\n' $Y $r $step $steps | bc -l)

    xte "mousemove ${new_x%%.*} ${new_y%%.*}"
    if ! (( down ))
    then
        xte 'mousedown 1'
        down=1
    fi
done

xte 'mouseup 1'
xte "mousemove $X $Y"

Interestingly, you can abuse the scoring system (not manually, only with a script). Since the mouse jumps to the locations along the circle, you can just use very few steps and still get a great score because every step you make is very accurate – but the result looks funny:

🥴

In reply to: #wwjyb7a 1 day ago
movq (www.uninformativ.de)

@lyse You must be wiser than me then. 😅 This effect only really kicked in with Covid for me. 🥴

In reply to: #ty4dy3a 3 days ago
movq (www.uninformativ.de)

@aelaraji I’ve only seen the first two episodes so far. S7E01 was just barely watchable for me, it’s way too realistic. This is supposed to be fiction, not a documentary! 😂

In reply to: #ia5pdda 3 days ago
movq (www.uninformativ.de)

@prologic Oh wow. 🤯

In reply to: #vyvzwdq 3 days ago
movq (www.uninformativ.de)

@prologic Maybe they are for you, dunno? 😅 Caffeine makes me stay at the same level of tiredness/exhaustion – except I’m hyped and can’t sleep. 🥴 Sucks, tbh. 😂

In reply to: #blthsia 3 days ago
movq (www.uninformativ.de)

@aelaraji Oh, been there. I only drink decaf now. It’s great, you can have the taste of a good coffee whenever you like – without the side effects. 😃

In reply to: #blthsia 3 days ago
movq (www.uninformativ.de)

@bender Don’t worry, I can’t replicate that score, either. 😂 Even tried with a graphics tablet, which is – to my surprise – not magically easier. 🥴

In reply to: #wwjyb7a 3 days ago
Reply via email