js实现可调节参数的黑白图像生成器代码
代码语言:html
所属分类:其他
代码描述:js实现可调节参数的黑白图像生成器代码红
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap.5.3.0.css"> <style> body { background: #f5f5f5; font-family: "Inter", sans-serif; } .container { display: flex; justify-content: center; align-items: center; height: 100vh; } .row { display: flex; align-items: stretch; } .col { display: flex; flex-direction: column; } .filter-range { display: flex; flex-direction: column; align-items: center; } .card { margin-top: 24px; margin-bottom: 24px; border-radius: 24px; padding: 24px; box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px; border: none; background: white; display: flex; justify-content: space-between; flex: 1; } .card h2 { margin-bottom: 32px; font-weight: 700; font-size: 1.7rem; } #canvas-container { position: relative; width: 100%; background: white; border-radius: 24px; box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px; display: flex; justify-content: space-between; flex-direction: column; } #canvas { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 24px; } #downloadBtn, #resetBtn, #toggleBtn { padding: 12px 24px; border: none; border-radius: 24px; cursor: pointer; font-weight: bold; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px, rgba(0, 0, 0, 0.06) 0px 1px 2px; } .buttons { display: flex; align-items: center; gap: 16px; margin-top: 32px; } #downloadBtn { background: #191919; color: white; } #resetBtn { background: #f5f5f5; color: #191919; } #toggleBtn { background: #191919; color: white; } </style> </head> <body translate="no"> <div class="container"> <div class="row"> <di.........完整代码请登录后点击上方下载按钮下载查看
网友评论0