1. Create Control
2. Apply texture with transparency with pixels touching the edges of the canvas
3. Rotate control 45°
Copy paste code:
```
[] spawn {
private _width = 64 * pixelW;
private _height = 64 * pixelh;
private _angles = [0, 45, 90, 135, 180, 225, 270, 315];
waitUntil { !isNull findDisplay 46 };
private _display = findDisplay 46;
{
private _ctrl = _display ctrlCreate ["RscPicture", -1];
_ctrl ctrlSetPosition [
70 * pixelW * _forEachIndex, 0,
_width,
_height
];
_ctrl ctrlCommit 0;
_ctrl ctrlSetAngle [_x, 0.5, 0.5, true];
_ctrl ctrlSetText "\A3\ui_f\data\map\vehicleicons\iconManLeader_ca.paa";
} forEach _angles;
private _ctrl = _display ctrlCreate ["RscPicture", -1];
_ctrl ctrlSetText "\A3\ui_f\data\map\vehicleicons\iconManLeader_ca.paa";
_ctrl ctrlSetPosition [
(count _angles) * 70 * pixelW, 0,
_width,
_height
];
_ctrl ctrlCommit 0;
private _i = 0;
while {true} do {
_ctrl ctrlSetAngle [_i, 0.5, 0.5, true];
_i = (_i + 0.5) mod 360;
sleep 0.05;
};
};
```