Hi Christian,
instead of "offset", you want to use anchorX and anchorY of the label to define which corner (or point) of the label is positioned relatively to the point coordinates.
For example, if the upper right corner of the label text should be at position [1, 0], you can set
P1 = board.create('point',[1,0],
{face:'o',
name:'K_1',
label:{
anchorX: 'right', // right, left, 'middle'
anchorY: 'top', // 'top', 'bottom', 'middle'
offset:[0, 0],
strokeColor: 'blue',
fontSize: 24
}
});
By setting the offset with pixel values e.g. [-5,-5] you can adjust the label position a little bit further.
The text color can be set with the property "strokeColor" of the label.
Best wishes,
Alfred