René's URL Explorer Experiment


Title: `stroke()` does not handle float values correctly · Issue #132 · processing/libprocessing · GitHub

Open Graph Title: `stroke()` does not handle float values correctly · Issue #132 · processing/libprocessing

X Title: `stroke()` does not handle float values correctly · Issue #132 · processing/libprocessing

Description: stroke() appears to mis-handle float inputs. When using floats (e.g. 150.0), the rendered color is incorrect Expected behavior Float values in the same range as integers should produce identical results, as in Processing. Actual behavior...

Open Graph Description: stroke() appears to mis-handle float inputs. When using floats (e.g. 150.0), the rendered color is incorrect Expected behavior Float values in the same range as integers should produce identical re...

X Description: stroke() appears to mis-handle float inputs. When using floats (e.g. 150.0), the rendered color is incorrect Expected behavior Float values in the same range as integers should produce identical re...

Opengraph URL: https://github.com/processing/libprocessing/issues/132

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`stroke()` does not handle float values correctly","articleBody":"`stroke()` appears to mis-handle float inputs. When using floats (e.g. `150.0`), the rendered color is incorrect\n\n### Expected behavior\n\nFloat values in the same range as integers should produce identical results, as in Processing.\n\n### Actual behavior\n\n* `stroke(150)` → correct grayscale\n* `stroke(150.0)` → renders as white\n\n### Reproduction (mewnala)\n\n```python\nfrom mewnala import *\n\ndef setup():\n    size(640, 360)\n    background(255)\n\ndef draw():\n    stroke(150.0)\n    line(0, 0, width, height)\n    line(width, 0, 0, height)\n\n    stroke(155.0, 100.0, 0.0)\n    line(0, height // 2, width, height // 2)\n    line(width // 2, 0, width // 2, height)\n\nrun()\n```\n\u003cimg width=\"1193\" height=\"460\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/7951e216-b9fb-45fc-8926-e3e64af171dd\" /\u003e\n\n### Equivalent Processing sketch (works as expected)\n\n```java\nvoid setup() {\n  size(640, 360);\n  background(255);\n}\n\nvoid draw() {\n  stroke(150.0);\n  line(0, 0, width, height);\n  line(width, 0, 0, height);\n\n  stroke(155.0, 100.0, 0.0);\n  line(0, height/2, width, height/2);\n  line(width/2, 0, width/2, height);\n}\n```\n\u003cimg width=\"1437\" height=\"711\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/bb027675-d27a-46a9-92cf-37026fa785cb\" /\u003e","author":{"url":"https://github.com/SableRaf","@type":"Person","name":"SableRaf"},"datePublished":"2026-04-24T14:54:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/132/libprocessing/issues/132"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:af093927-7b25-7afe-93ed-ec209e8b50e0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC07C:2B9CDD:6427B4B:87BC963:6A5E1778
html-safe-nonceca7c45b0d817659c121af27c2b5addc4420c2687bb7257374aea1cc87f8bfc0f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDdDOjJCOUNERDo2NDI3QjRCOjg3QkM5NjM6NkE1RTE3NzgiLCJ2aXNpdG9yX2lkIjoiODI2MjA2NzAyOTYwOTk0NDk1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace449eac67757ba519e3393439ea30adda27da32db6213be3119375e1b32a80e8
hovercard-subject-tagissue:4323737364
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/processing/libprocessing/132/issue_layout
twitter:imagehttps://opengraph.githubassets.com/214129dbec3725f6bfc328564e2686d53908e225746e015f3888c6f457518684/processing/libprocessing/issues/132
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/214129dbec3725f6bfc328564e2686d53908e225746e015f3888c6f457518684/processing/libprocessing/issues/132
og:image:altstroke() appears to mis-handle float inputs. When using floats (e.g. 150.0), the rendered color is incorrect Expected behavior Float values in the same range as integers should produce identical re...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSableRaf
hostnamegithub.com
expected-hostnamegithub.com
Noned4a572b82dcecf0667243946ab33171fae36ea3b282a90c368cd553220df258f
turbo-cache-controlno-preview
go-importgithub.com/processing/libprocessing git https://github.com/processing/libprocessing.git
octolytics-dimension-user_id1617169
octolytics-dimension-user_loginprocessing
octolytics-dimension-repository_id1101329545
octolytics-dimension-repository_nwoprocessing/libprocessing
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1101329545
octolytics-dimension-repository_network_root_nwoprocessing/libprocessing
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef2da5f89a14df1202295f828eac9035e3a4d2b2b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/processing/libprocessing/issues/132#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Flibprocessing%2Fissues%2F132
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Flibprocessing%2Fissues%2F132
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=processing%2Flibprocessing
Reloadhttps://github.com/processing/libprocessing/issues/132
Reloadhttps://github.com/processing/libprocessing/issues/132
Reloadhttps://github.com/processing/libprocessing/issues/132
Please reload this pagehttps://github.com/processing/libprocessing/issues/132
processing https://github.com/processing
libprocessinghttps://github.com/processing/libprocessing
Notifications https://github.com/login?return_to=%2Fprocessing%2Flibprocessing
Fork 12 https://github.com/login?return_to=%2Fprocessing%2Flibprocessing
Star 56 https://github.com/login?return_to=%2Fprocessing%2Flibprocessing
Code https://github.com/processing/libprocessing
Issues 68 https://github.com/processing/libprocessing/issues
Pull requests 2 https://github.com/processing/libprocessing/pulls
Actions https://github.com/processing/libprocessing/actions
Projects https://github.com/processing/libprocessing/projects
Wiki https://github.com/processing/libprocessing/wiki
Security and quality 0 https://github.com/processing/libprocessing/security
Insights https://github.com/processing/libprocessing/pulse
Code https://github.com/processing/libprocessing
Issues https://github.com/processing/libprocessing/issues
Pull requests https://github.com/processing/libprocessing/pulls
Actions https://github.com/processing/libprocessing/actions
Projects https://github.com/processing/libprocessing/projects
Wiki https://github.com/processing/libprocessing/wiki
Security and quality https://github.com/processing/libprocessing/security
Insights https://github.com/processing/libprocessing/pulse
stroke() does not handle float values correctlyhttps://github.com/processing/libprocessing/issues/132#top
bugSomething isn't workinghttps://github.com/processing/libprocessing/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/SableRaf
SableRafhttps://github.com/SableRaf
on Apr 24, 2026https://github.com/processing/libprocessing/issues/132#issue-4323737364
https://private-user-images.githubusercontent.com/290261/583454743-7951e216-b9fb-45fc-8926-e3e64af171dd.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODQ1NTE1ODgsIm5iZiI6MTc4NDU1MTI4OCwicGF0aCI6Ii8yOTAyNjEvNTgzNDU0NzQzLTc5NTFlMjE2LWI5ZmItNDVmYy04OTI2LWUzZTY0YWYxNzFkZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzIwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcyMFQxMjQxMjhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wOTlmZGZmYjUxMzYxNWQ2MDYzMTM2NWZhMjk5YzlkOGIyMzJlNmExMTIwZjYxYTUzNzYzOWY1NTNhYWZjZDlkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.nEdCEUuXL2a4E_M9iZJdUq8oHLE9aVqseJmsuq3hKNA
https://private-user-images.githubusercontent.com/290261/583454410-bb027675-d27a-46a9-92cf-37026fa785cb.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODQ1NTE1ODgsIm5iZiI6MTc4NDU1MTI4OCwicGF0aCI6Ii8yOTAyNjEvNTgzNDU0NDEwLWJiMDI3Njc1LWQyN2EtNDZhOS05MmNmLTM3MDI2ZmE3ODVjYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzIwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcyMFQxMjQxMjhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04ZDg4NGUxZDNmMmVjZmU2YTdiMWNhY2NhZTFjM2RhOGUzOTUyODZkMzM2MDFiNjc5ZTgwNjU4Y2VkODVhMjcwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.qAZdMT6qR-W70V_FIVP9Ikqd1ZYDpsSWWq1iYMf5i-4
bugSomething isn't workinghttps://github.com/processing/libprocessing/issues?q=state%3Aopen%20label%3A%22bug%22
libprocessing Roadmaphttps://github.com/orgs/processing/projects/49
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.