Reference
Every function, handle class, field and type of datumhue, grouped by what you are making.
Reading an entry
DrawCanvas:circle(opts: draw.CircleOptions) -> DrawPrimitive- Signatures read as your editor shows them:
name?: Tis an argument you may leave out,T?is a value that may benil,->introduces what the call returns, andfun(dt: number)is a function you pass. Class:methodis called on a handle, as incanvas:circle({ radius = 40 });datumhue.draw.newis a plain function.- A call that takes an options table lists its keys, with their types and defaults, under the call. Hover or focus a type to preview it.
- A suspends pill marks a call that waits for its result, needs a permission the app must hold, and UI apps only a call service apps cannot make.
Areas
Making things
App & lifecycleStart and stop apps, run code every frame, and ask for permissions.47 membersUser interfacePanels, buttons and text, themes, and the screen and windows.138 members2D drawingShapes, paths and text on a canvas that keeps what you draw.67 membersImages & spritesImages, pixel pictures, sprite atlases, animation and tile maps.71 members3D scenesScenes, meshes, lights and cameras, materials, shaders, voxels and particles.205 membersData & chartsTables of data, queries, and charts with scales, marks and axes.106 members
Input and output
Input & timeKeys, mouse, touch and gamepads, system events, timers and dates.63 membersPhysics & gridsBodies, joints and collisions, and grids for paths, light and distance.62 membersAudioPlay samples, music and tones, shape them while they play, and mix them on buses.79 membersFiles, storage & bytesFolders and files you are granted, stores that last between runs, and bytes.77 membersMessaging & shared stateMessages between apps, who is present, and documents apps share.40 members
Services and helpers
Accounts & catalogSign-in and the package catalog.46 membersPurchasesOffer paid packages, check what the signed-in person owns, and list the devices that use it.22 membersBooksBooks of pages with live elements, and the collections and counters they keep.15 membersText & languagesFonts, and text translated through message catalogs.11 membersMath, color & randomVectors, quaternions and rays, colors, noise, and seeded random streams.199 membersTesting & debuggingDrive input from a test: keys, clicks, touches and gamepads.10 members