A General Approach to Setting Parameters for Computer Graphics