package miaou-widgets-display-sdl
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Miaou SDL widget implementations
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.5.2.tar.gz
md5=60a3b9f181f24572a06a9492532bfdda
sha512=fcc35a275066be2900e6201782faf47503076fa4640f08cf78067835a6f447b74613009e55b2ac799adb7ca46f1bffa261fc5971753f2cc3c6bef327511c7ef6
doc/miaou-widgets-display-sdl.widgets/Miaou_widgets_display_sdl/Line_chart_widget_sdl/index.html
Module Miaou_widgets_display_sdl.Line_chart_widget_sdlSource
SDL-enhanced line chart widget with smooth anti-aliased rendering.
This module provides SDL-optimized rendering for line charts with:
- Smooth vector lines with anti-aliasing
- Filled areas under curves with transparency
- Precise pixel-level rendering
- Smooth grid lines and axes
Source
type sdl_render_info = {renderer : Tsdl.Sdl.renderer;x : int;(*Top-left X position in pixels
*)y : int;(*Top-left Y position in pixels
*)width : int;(*Width in character cells
*)height : int;(*Height in character cells
*)char_w : int;(*Character cell width in pixels
*)char_h : int;(*Character cell height in pixels
*)
}SDL rendering context information
Source
val render_sdl :
sdl_render_info ->
Miaou_widgets_display.Line_chart_widget.t ->
show_axes:bool ->
show_grid:bool ->
?thresholds:Miaou_widgets_display.Line_chart_widget.threshold list ->
unit ->
unitRender line chart directly to SDL renderer with enhanced graphics.
infoSDL rendering contextshow_axesWhether to draw axesshow_gridWhether to draw background grid linesthresholdsOptional thresholds for coloring points/lines
Source
val render :
Miaou_widgets_display.Line_chart_widget.t ->
show_axes:bool ->
show_grid:bool ->
?thresholds:Miaou_widgets_display.Line_chart_widget.threshold list ->
unit ->
stringFallback to text-based rendering for terminal mode. Returns the rendered chart as a string.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>