world_data_index   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm

Implementation

(bind-func world_data_index
  (lambda (w x y)
    (let ((width (world_width w))
          (height (world_height w))
          (xrem (% x width))
          (yrem (% y height)))
      (+ (* (+ yrem (if (< yrem 0) height 0)) width)
         (+ xrem (if (< xrem 0) width 0))))))


Back to Index

Similar Entries

  • AudioBuffer_data_b64    xtlang
  • AudioBuffer_data_b64_cstring    xtlang
  • AudioBuffer_set_data_b64    xtlang
  • AudioBuffer_shared_data    xtlang
  • Pm_Event_Data1    xtlang
  • Pm_Event_Data2    xtlang
  • Pm_Message_Data1    xtlang
  • Pm_Message_Data2    xtlang
  • QRcode_data    xtlang
  • Texture_bind_data    xtlang
  • Texture_bind_data    xtlang
  • VBO_data    xtlang
  • VBO_update_data    xtlang
  • aiProcess_FindInvalidData    scheme
  • aiProcess_ValidateDataStructure    scheme
  • bind-data    macro
  • bind-data-constructors    scheme
  • bind-data-deconstructors    scheme
  • bind-data-deconstructors-macros    scheme
  • bind-data-getters    scheme
  • bind-data-type    scheme
  • bind-data-type-constructor    scheme
  • bind-data-types    scheme
  • callback_goodbye_world    xtlang
  • callback_hello_world    xtlang
  • change-at-index    scheme
  • clear_sample_data_    xtlang
  • create_data    xtlang
  • data    xtlang
  • data    xtlang
  • delete-at-index    scheme
  • fits-image-data-R32    xtlang
  • fits-image-data-R32    xtlang
  • fits-image-data-RGBA32    xtlang
  • fits-image-data-RGBA32    xtlang
  • fits-image-data-RGBA32-false    xtlang
  • fits-image-data-RGBA32-false    xtlang
  • get_hand_data    xtlang
  • impc:compiler:print-index-oob-error    scheme
  • impc:ti:compile-type-dataconstructors    scheme
  • impc:ti:gl-proc-alist-index    scheme
  • index_of    xtlang
  • index_of    xtlang
  • init_sample_data    xtlang
  • init_sample_data    xtlang
  • insert-at-index    scheme
  • lilv_init_world    xtlang
  • load_cube_data    xtlang
  • load_data    xtlang
  • ocv_dataPtr    xtlang
  • ocv_dataPtr    xtlang
  • set-data-arrays-lines    xtlang
  • set-data-arrays-points    xtlang
  • set-data-particles    xtlang
  • set_sample_data_    xtlang
  • sys_file_datasync    xtlang
  • sys_file_datasync    xtlang
  • test_world_copy    xtlang
  • test_world_foo    xtlang
  • test_world_indexing    xtlang
  • test_world_periodic_bc    xtlang
  • update_data_points    xtlang
  • walker_at_index    xtlang
  • world_add_blinker    xtlang
  • world_ascii_print    xtlang
  • world_basic_print    xtlang
  • world_copy    xtlang
  • world_create    xtlang
  • world_data    xtlang
  • world_data_size    xtlang
  • world_equal    xtlang
  • world_generation    xtlang
  • world_height    xtlang
  • world_increment_generation    xtlang
  • world_init    xtlang
  • world_reset    xtlang
  • world_set_generation    xtlang
  • world_set_to_checkerboard    xtlang
  • world_set_to_inverse    xtlang
  • world_step    xtlang
  • world_texture_setup    xtlang
  • world_width    xtlang
  • xobj_database    xtlang
  • xtm_frame_data_to_tex    xtlang
  • xtm_set_vgimage_subdata    xtlang