You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing the number of legs, you can increase the number of robot legs.
LEG_SET_NUM = 6
Only 6 legs (not display coordinate plane)
Altering the setting of plot area and disappearing coordinate plane, 6-legged robot appears to walk.
unset xlabel # or set xlabel "..." tc(=textcolor) rub 'white'
unset ylabel # or set ylabel "..." tc rub 'white'
unset tics # or set tics tc rub 'white'
unset grid # or set grid lc rub 'white'
unset border # or set border lc rub 'white'
Color setting for each leg
If you make gradual color change, you use the following code.
WHITEN_VAL = int(180./LEG_SET_NUM) # If numerator is not 180 but 255, the last pair of legs turns too white.
color = 0x000000 + (WHITEN_VAL*k << 16)+(WHITEN_VAL*k << 8)+(WHITEN_VAL*k << 0) # If base color is black
color = 0xff0000 + (WHITEN_VAL*k << 8)+(WHITEN_VAL*k << 0) # If base color is red
On the other hand, if you specify the color used for each leg, you use the following code.
(k=0 : Red, k=1 : Green, k=2 : Blue)
When transparency is used in png terminal, the "truecolor" option must be selected [3]. Then you use transparent color if you represent color by 32 bits AARRGGBB [4]. So, I modified the code as follows.
set term png truecolor enhanced size 960, 720 # truecolor is important!
CIRC_R = 4 # Largen radius
color = (j==0 ? 0x80ff3434 : (j==1 ? 0x80759dff : 0x8056bf56)) # 0x80RRGGBB = 50% transparency, rgb RRGGBB
plot_command = plot_command.sprintf(", outputfile u %d:%d every ::%d::%d w l lw LW*0.7 lc rgb 'gray30'", 16+2*k, 17+2*k, start, end) # Change color
Thanks to truecolor, all of the circles representing joint $\mathrm{A}$ are transparent as shown in the below figure. However, arrows drawn without a head are not transparent. So, if you want to draw transparent not only circles but also lines, I suggest you to set the qt terminal. Please note that you can't save image by using command 'set output' in qt terminal.