Directory code replace parseInt slice round toString Code /** * The value of two colors mixed * @param {string} color1 color 1 * @param {string} color2 color 2 * @param {number} weight weight * @return {string} blendedColor final result */ function blendColors(color1, color2, weight) {<!– –> // Parse color string into RGB value function parseColor(color) […]
Tag: hex
QT serial port assistant: identify serial port number, send, receive, hexadecimal
1 Summary This article mainly describes how to use QT to implement the basic functions of a serial port assistant from scratch. The functions are as shown in the title. The source code is attached at the end of the article for your reference. If there are any errors or omissions in the article, readers […]
JavaScript implements hexadecimal color difference function, hexadecimal color subtraction, replace, parseInt, max, toString, slice
Directory code replace parseInt max toString slice Code /** * Convert hexadecimal color to RGB format * @param {string} hex hexadecimal color value * @return {string} {r, g, b} returns the final rgb value */ function hexToRgb(hex) {<!– –> // Remove possible # characters hex = hex.replace(/^#/, ”); // If the color value is an […]
Build a personal blog_Obsidian_github.io_hexo
1 Original intention I started sharing documents very early, mainly technical ones. At first it was MSN and blogs. As the platforms changed, I later used CSDN, Zhihu, Jianshu… and then Obsidian, Feishu, Notion, Often have the following problems: 1.1 Question Each platform has different formats and different review rules. It takes a lot of […]
How does QT parse hex code (hexadecimal code)
Directory 1. What is HEX code 2. Hex code conversion 2.1 How to convert a hexadecimal number into a binary number 2.2 How to convert binary numbers into hexadecimal numbers 2.3 Benefits of using hexadecimal 3. How to use QT to parse hexadecimal codes (including codes) 3.1 Understand the udp operation mechanism of qt 3.2 […]
Netty: Use ByteBufUtil to convert ByteBuf data into beautified hexadecimal representation
Description Using the appendPrettyHexDump function of io.netty.buffer.ByteBufUtil, the content of ByteBuf can be converted into hexadecimal data represented by beautified multi-line representation. appendPrettyHexDump(StringBuilder dump, ByteBuf buf): Append the prettified hexadecimal representation of the multi-line representation of the ByteBuf content after the StringBuilder. appendPrettyHexDump(StringBuilder dump, ByteBuf buf, int offset, int length): Append the multi-line representation of […]
Personal blog construction-based on Hexo-Next-Github
Preparation The blog is built based on Hexo and uses the theme Next. To ensure a smooth process, some preparations need to be made first, including the dependencies and accounts that need to be used. The construction environment is Windows. Dependencies Node.js Node.js is an open source, cross-platform JavaScript runtime environment, based on Google’s V8 […]
Github remote warehouse management + hexo blog migration
github remote warehouse management + hexo blog migration git remote warehouse management Upload to github using git Clone from remote to local Step on pitfalls hexo blog migration git remote warehouse management Use git to upload to github Suggestion: You may encounter some problems during this process. If you read this article thoroughly, you may […]
Building a blog website based on Hexo+hexo-theme-stun
Build a blog website based on Hexo + hexo-theme-stun How to build a personal blog site 1. Introduction to Hexo Two, hexo-theme-stun theme 3. Demonstration effect 4. Build 5. Configuration Hexo overall configuration 1. First download the theme 2. Modify the configuration file `_config.yml` in the root directory of the project 3. Add website, URL […]
Hexo+github+Butterfly build a personal blog
Foreword Hexo is a static blog framework based on Node.js. It has few dependencies and is easy to install and use. It can easily generate static web pages and host them on GitHub and Heroku. It is the preferred framework for building blogs. Overall reference tutorial: [2023 latest version] Hexo + github to build a […]