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    /digego/extempore/tree/v0.8.9/tests/core/generics.xtm
  • Circle    xtlang    /digego/extempore/tree/v0.8.9/tests/core/generics.xtm
  • cerberus_moog_ladder_inlined    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus.xtm
  • circle_whole    xtlang    /digego/extempore/tree/v0.8.9/libs/external/opengl.xtm
  • cpBBNewForCircle    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libchipmunk/cpBB.xtm
  • draw_a_circle    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/nanovg_helper.xtm
  • draw_a_circle    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/nanovg_helper.xtm
  • draw_a_line    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/nanovg_helper.xtm
  • draw_a_line    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/nanovg_helper.xtm
  • dv_draw_line    xtlang    /digego/extempore/tree/v0.8.9/libs/external/datavis.xtm
  • dv_draw_line_segments    xtlang    /digego/extempore/tree/v0.8.9/libs/external/datavis.xtm
  • gui_draw_circle    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • linear_c    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audio_dsp.xtm
  • linear_mc_c    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audio_dsp.xtm
  • make-timeline    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • moog_ladder_inlined    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue.xtm
  • on_before_command_line_processing    xtlang    /digego/extempore/tree/v0.8.9/libs/external/cef/cef.xtm
  • pipeline    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/stream.xtm
  • pipeline    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/stream.xtm
  • pipeline_stage    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/stream.xtm
  • pipeline_stage    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/stream.xtm
  • pipeline_stage    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/stream.xtm
  • reverse_inline    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • sampler_note_linear    xtlang    /digego/extempore/tree/v0.8.9/libs/external/instruments_ext.xtm
  • set-data-arrays-lines    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/kinect_fire.xtm
  • svm_parse_line    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/svm.xtm
  • svm_read_line    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/svm.xtm
  • xtm_add_circle    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_add_circle    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_add_line    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/openvg.xtm
  • xtm_add_line    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_add_line    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_add_lined    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/openvg.xtm
  • xtm_draw_circle_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_circle_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_circle_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_circle_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_circle_stroke    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_circle_stroke    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_circle_stroke    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_circle_stroke    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_line    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/openvg.xtm
  • xtm_draw_line    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_line    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_line    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_line    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_lined    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/openvg.xtm