createStandardCalibration static method
Create a standard 5-point calibration pattern
Returns calibration points for corners and center of screen.
screenWidth and screenHeight should be in pixels.
Implementation
static List<CalibrationPoint> createStandardCalibration({
double screenWidth = 1920,
double screenHeight = 1080,
}) {
const margin = 0.1; // 10% margin from edges
return [
CalibrationPoint(
x: screenWidth * margin,
y: screenHeight * margin,
order: 0,
), // Top-left
CalibrationPoint(
x: screenWidth * (1 - margin),
y: screenHeight * margin,
order: 1,
), // Top-right
CalibrationPoint(
x: screenWidth * 0.5,
y: screenHeight * 0.5,
order: 2,
), // Center
CalibrationPoint(
x: screenWidth * margin,
y: screenHeight * (1 - margin),
order: 3,
), // Bottom-left
CalibrationPoint(
x: screenWidth * (1 - margin),
y: screenHeight * (1 - margin),
order: 4,
), // Bottom-right
];
}