Skip to main content

impossible_cube

Function impossible_cube 

Source
pub fn impossible_cube(center_x: f64, center_y: f64, size: f64) -> Value
Expand description

Genera las coordenadas para el Cubo Imposible

§Parámetros

  • center_x: Centro X en pantalla
  • center_y: Centro Y en pantalla
  • size: Tamaño del cubo

§Retorna

Array de líneas: [[x1, y1, x2, y2], …]