circle_line   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/external/opengl.xtm

Implementation

(bind-func circle_line
  (lambda (radius:double x:double y:double)
    (let ((k 0.0))
      (glLineWidth 3.0)
      (glBegin GL_LINE_LOOP)
      (dotimes (k 90.0)
  (let ((angle:double (/ (* k 2.0 PI) 90.0)))
    (glVertex2d (+ x (* (cos angle) radius)) (+ y (* (sin angle) radius)))))
      (glEnd))))


Back to Index

Similar Entries

  • Circle    xtlang
  • Circle    xtlang
  • cerberus_moog_ladder_inlined    xtlang
  • circle_whole    xtlang
  • cpBBNewForCircle    xtlang
  • draw_a_circle    xtlang
  • draw_a_circle    xtlang
  • draw_a_line    xtlang
  • draw_a_line    xtlang
  • dv_draw_line    xtlang
  • dv_draw_line_segments    xtlang
  • gui_draw_circle    xtlang
  • linear_c    xtlang
  • linear_mc_c    xtlang
  • make-timeline    scheme
  • moog_ladder_inlined    xtlang
  • on_before_command_line_processing    xtlang
  • pipeline    xtlang
  • pipeline    xtlang
  • pipeline_stage    xtlang
  • pipeline_stage    xtlang
  • pipeline_stage    xtlang
  • reverse_inline    xtlang
  • sampler_note_linear    xtlang
  • set-data-arrays-lines    xtlang
  • svm_parse_line    xtlang
  • svm_read_line    xtlang
  • xtm_add_circle    xtlang
  • xtm_add_circle    xtlang
  • xtm_add_line    xtlang
  • xtm_add_line    xtlang
  • xtm_add_line    xtlang
  • xtm_add_lined    xtlang
  • xtm_draw_circle_fill    xtlang
  • xtm_draw_circle_fill    xtlang
  • xtm_draw_circle_fill    xtlang
  • xtm_draw_circle_fill    xtlang
  • xtm_draw_circle_stroke    xtlang
  • xtm_draw_circle_stroke    xtlang
  • xtm_draw_circle_stroke    xtlang
  • xtm_draw_circle_stroke    xtlang
  • xtm_draw_line    xtlang
  • xtm_draw_line    xtlang
  • xtm_draw_line    xtlang
  • xtm_draw_line    xtlang
  • xtm_draw_line    xtlang
  • xtm_draw_lined    xtlang