Hi @arkadiy, I think in your last example you had not translated the code component from Python to JS. In the code component dialog, you can set your code type to “both” and see the Python (left) and JS (right) side by side to help translation. This is how you can set the marker size and color for your online task: Using a code component, with code in the relevant tabs (see comments):
// Begin Experiment
col = new util.Color('black') // Create your color once
newMarkerSize = 35 // in pixels
// Each Frame
try {
if (slider._markerColor.int !== col.int) {
slider._markerColor = col;
slider._marker.lineStyle(1, col.int, 1, 0.5);
slider._marker.beginFill(col.int, 1);
slider._marker.drawCircle(0, 0, newMarkerSize / 2);
slider._marker.endFill();
slider._needUpdate = true;
slider._updateIfNeeded();
}
} catch (err) {}