Text Colors ~n~ New line ~r~ Red ~g~ Green ~b~ Blue ~w~ or ~s~ White ~y~ Yellow ~p~…
- User
Text Colors
nNew linerRedgGreenbBlueworsWhiteyYellowpPurplelBlack (lower case L)hTurn text color lighter (used too much will make your text white, doesn't work on black)используя эти теги добавь цветов в мои дебаг тексты:
-- Debug information mad.draw_text("Cursor Position: (" .. string.format("%.2f", state.cursor.x) .. ", " .. string.format("%.2f", state.cursor.y) .. ")", 750, 439, mad.font_style.SUBTITLES, 0.3, 0.6, mad.font_align.LEFT, 2000, true, false, 255, 255, 255, 255, 1, 0, 30, 30, 30, 120) mad.draw_text("Original Cursor Position: (" .. string.format("%.2f", state.firing.startPosition.x) .. ", " .. string.format("%.2f", state.firing.startPosition.y) .. ")", 750, 439 + 20, mad.font_style.SUBTITLES, 0.3, 0.6, mad.font_align.LEFT, 2000, true, false, 255, 255, 255, 255, 1, 0, 30, 30, 30, 120) mad.draw_text("Firing Active: " .. tostring(state.firing.isActive), 750, 439 + 40, mad.font_style.SUBTITLES, 0.3, 0.6, mad.font_align.LEFT, 2000, true, false, 255, 255, 255, 255, 1, 0, 30, 30, 30, 120) mad.draw_text("Firing Start Time: " .. (state.firing.startTime or "N/A"), 750, 439 + 60, mad.font_style.SUBTITLES, 0.3, 0.6, mad.font_align.LEFT, 2000, true, false, 255, 255, 255, 255, 1, 0, 30, 30, 30, 120) mad.draw_text("Animation Progress: " .. string.format("%.2f", (state.firing.isActive and (os.clock() - state.firing.startTime) / config.animation.duration or 0)), 750, 439 + 80, mad.font_style.SUBTITLES, 0.3, 0.6, mad.font_align.LEFT, 2000, true, false, 255, 255, 255, 255, 1, 0, 30, 30, 30, 120) mad.draw_text("Hold Time Start: " .. (state.firing.holdTimeStart or "N/A"), 750, 439 + 100, mad.font_style.SUBTITLES, 0.3, 0.6, mad.font_align.LEFT, 2000, true, false, 255, 255, 255, 255, 1, 0, 30, 30, 30, 120) mad.draw_text("Last Update Time: " .. string.format("%.2f", state.time.last), 750, 439 + 120, mad.font_style.SUBTITLES, 0.3, 0.6, mad.font_align.LEFT, 2000, true, false, 255, 255, 255, 255, 1, 0, 30, 30, 30, 120) mad.draw_text("Camera Position: (" .. string.format("%.2f", camera.x) .. ", " .. string.format("%.2f", camera.z) .. ")", 750, 439 + 140, mad.font_style.SUBTITLES, 0.3, 0.6, mad.font_align.LEFT, 2000, true, false, 255, 255, 255, 255, 1, 0, 30, 30, 30, 120)
-- Render the letter 'X' at the center of the screen, negating the camera offset local screenWidth, screenHeight = 1440, 900 -- Assuming resolution (adjust as necessary) local centerX = screenWidth / 2 local centerY = screenHeight / 2 draw_text("lol", centerX - 8 , centerY + (state.cursor.x * 1500) - 7, 255, 0, 0) -- Red 'X' at the center with camera offset end
function draw_text(str, x, y, r, g, b) mad.draw_text(str, x, y, mad.font_style.SUBTITLES, 0.4, 0.7, mad.font_align.LEFT, 2000, true, false, r, g, b, 255, 1, 0, 30, 30, 30, 120) end
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.